Jump to content

rc (Unix shell)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 90.218.219.252 (talk) at 19:07, 9 December 2016 (Examples). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

{{Infobox programming language | name = rc | logo = | paradigm = imperative, pipeline | year = 2015}; Error: first parameter cannot be parsed as a date or time. (2015})

An rc session

rc (for "run commands") is the command line interpreter for Version 10 Unix and Plan 9 from Bell Labs operating systems. It resembles the Bourne shell, but its syntax is somewhat simpler. It was created by Tom Duff, who is better known for an unusual C programming language construct ("Duff's device").

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 ALGOL-like, as the original Bourne shell, except that it uses an if not construct instead of else and has a Bourne-like for loop to iterate over lists. In rc all variables are lists of strings, which eliminates the need for constructs like "$@".

Influences

es

es (for "extensible shell") is an Open source, command line interpreter developed by Rakitzis and Paul Haahr,[1] that uses a scripting language syntactically similar to the rc shell.[2][3] It was originally based on code from Byron Rakitzis's clone of rc for Unix[4][5]

Extensible shell is intended to provide a fully functional programming language as a Unix shell.[6] The bulk of es development occurred in the early 1990s, after the shell was introduced at the Winter 1993 USENIX conference in San Diego,[7] Official releases appear to have ceased after 0.9-beta-1 in 1997,[8] and standard es lacks features as compared to more popular shells, such as zsh and bash.[9]

Examples

For example,

References

  1. ^ Spatial Analytical Perspectives on GIS.
  2. ^ "Ubuntu Manpage: es - extensible shell". Manpages.ubuntu.com. 1992-03-05. Retrieved 2012-08-24.
  3. ^ "Extensible Shell". FOLDOC. Retrieved 2012-08-24.
  4. ^ "Shells Available for Linux". LUV. Retrieved 2012-08-24.
  5. ^ Jones, Tim. "Evolution of shells in Linux". IBM. Retrieved 14 March 2014.
  6. ^ "Linux Journal 12: What's GNU". Retrieved 2012-08-24.
  7. ^ Es: A shell with higher-order functions by Byron Rakitzis, NetApp, Inc, and Paul Haahr, Adobe Systems Incorporated; Archived at Archive.Org.
  8. ^ [1]
  9. ^ "UNIX shell differences". Faqs.org. Retrieved 2012-08-24.