Rc (Unix shell): Difference between revisions

Content deleted Content added
No edit summary
Changed $@ to "$@", which now would be equivalent to the aforementioned lists of strings in terms of Bourne's argument quoting.
Line 28:
A port of the original rc to Unix is part of [[Plan 9 from User Space]]. A rewrite of rc for [[Unix-like]] operating systems by Byron Rakitzis is also available but includes some incompatible changes.
 
Rc uses C-like control structures instead of the original Bourne shell's [[ALGOL]]-like structures, except that it uses an <code>if not</code> construct instead of <code>else</code>, and has a Bourne-like <code>for</code> loop to iterate over lists. In rc, all variables are lists of strings, which eliminates the need for constructs like "<code>[[$@|"$@"]]</code>". Variables are not re-split when expanded. The language is described in Duff's paper.<ref name=RCTD/>
 
==Influences== <!--Anchor from redirected [[Es (Unix shell)]] article; caution with changes. -->