Bourne Again SHell: Difference between revisions

From Rosetta Code
Content added Content deleted
m (Removed unnecessary newline)
(bash also has coprocesses (do 'man bash' and search for 'coproc').)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{implementation|UNIX Shell}}'''bash''' (the "Bourne Again SHell") is the GNU implementation of a Unix shell which is intended to be compatible with the original UNIX [[Bourne Shell|shell]] (/bin/sh) by Stephen Bourne. ''bash'' was primarily written and is maintained by Brian Fox and Chet Ramey. The name follows an FSF (Free Software Foundation) tradition for whimsical and pun-referential names.
{{implementation|UNIX Shell}}'''bash''' (the "Bourne Again SHell") is the GNU implementation of a [[Unix]] shell which is intended to be compatible with the original UNIX [[Bourne Shell]] (/bin/sh) by [[wp:Stephen R. Bourne|Stephen R. Bourne]]. ''bash'' was primarily written and is maintained by [[wp:Brian Fox (computer programmer)|Brian Fox]] and Chet Ramey. The name follows a [[wp:Free Software Foundation|Free Software Foundation]] tradition for whimsical and pun-referential names.


In functionality ''bash'' goes well beyond the original Bourne shells and closely matches the extensions of David Korn's "Korn shell" (''ksh'') but lacks built-in support for "associative arrays" and co-processes. However, ''bash'' also adds a number of interactive features drawn from Bill Joy's [[C SHell]] (including the many "bang expansion operators" for things like !! (expand to entire previous command), !-2 (expand to penultimate command), !$ (expand to last argument of previous command) etc).
In functionality ''bash'' goes well beyond the original Bourne shells and closely matches the extensions of David Korn's "[[Korn Shell]]" (''ksh''), though ''bash'' and ''ksh'' use different syntax to create a coprocess or an associative array. ''bash'' also adds a number of interactive features drawn from Bill Joy's [[C Shell]] (including the many "bang expansion operators" for things like !! (expand to entire previous command), !-2 (expand to penultimate command), !$ (expand to last argument of previous command) etc).

* [http://www.gnu.org/software/bash/ GNU Bash homepage]
* [http://tldp.org/LDP/abs/html/ Advanced Bash-Scripting Guide]
* [[wp:Bash (Unix shell)|Bash]] on Wikipedia

Latest revision as of 17:07, 9 August 2011

Bourne Again SHell is an implementation of UNIX Shell. Other implementations of UNIX Shell.

bash (the "Bourne Again SHell") is the GNU implementation of a Unix shell which is intended to be compatible with the original UNIX Bourne Shell (/bin/sh) by Stephen R. Bourne. bash was primarily written and is maintained by Brian Fox and Chet Ramey. The name follows a Free Software Foundation tradition for whimsical and pun-referential names.

In functionality bash goes well beyond the original Bourne shells and closely matches the extensions of David Korn's "Korn Shell" (ksh), though bash and ksh use different syntax to create a coprocess or an associative array. bash also adds a number of interactive features drawn from Bill Joy's C Shell (including the many "bang expansion operators" for things like !! (expand to entire previous command), !-2 (expand to penultimate command), !$ (expand to last argument of previous command) etc).