Original author(s) | Brian Fox |
---|---|
Developer(s) | Chet Ramey[1][2] |
Initial release | June 8, 1989 |
Stable release | 5.2.21[3]
/ 9 November 2023 |
Repository | |
Written in | C |
Operating system | |
Platform | GNU |
Available in | Multilingual (gettext) |
Type | Unix shell, command language |
License | Since 4.0: GPL-3.0-or-later[10] 1.11? to 3.2: GPL-2.0-or-later[11] 0.99? to 1.05?: GPL-1.0-or-later[12][13][14] |
Website | www |
Bash is a Unix shell and command language written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell.[15][16] The shell's name is an acronym for Bourne-Again SHell, a pun on the name of the Bourne shell that it replaces[17] and the notion of being "born again".[18][19] First released in 1989,[20] it has been used as the default login shell for most Linux distributions and it was one of the first programs Linus Torvalds ported to Linux, alongside GCC.[21] It is available on nearly all modern operating systems.
Bash is a command processor that typically runs in a text window where the user types commands that cause actions. Bash can also read and execute commands from a file, called a shell script. Like most Unix shells, it supports filename globbing (wildcard matching), piping, here documents, command substitution, variables, and control structures for condition-testing and iteration. The keywords, syntax, dynamically scoped variables and other basic features of the language are all copied from sh. Other features, e.g., history, are copied from csh and ksh. Bash is a POSIX-compliant shell, but with a number of extensions.
A version is also available for Windows 10 and Windows 11 via the Windows Subsystem for Linux.[22][23] It is also the default user shell in Solaris 11.[24] Bash was also the default shell in BeOS,[7] and in versions of Apple macOS from 10.3 (originally, the default shell was tcsh) to 10.15 (macOS Catalina), which changed the default shell to zsh,[25] although Bash remains available as an alternative shell.[26]
A security hole in Bash dating from version 1.03 (August 1989),[27] dubbed Shellshock, was discovered in early September 2014 and quickly led to a range of attacks across the Internet.[28][29][30] Patches to fix the bugs were made available soon after the bugs were identified.
Bash is free software, distributed under the terms of the [GNU] General Public License as published by the Free Software Foundation, version 3 of the License (or any later version).
See test.c for GPL-2.0-or-later
For a year and a half, the GNU shell was "just about done". The author made repeated promises to deliver what he had done, and never kept them. Finally I could no longer believe he would ever deliver anything. So Foundation staff member Brian Fox is now implementing an imitation of the Bourne shell.
When Richard Stallman decided to create a full replacement for the then-encumbered Unix systems, he knew that he would eventually have to have replacements for all of the common utilities, especially the standard shell, and those replacements would have to have acceptable licensing.Original computerworld.com.au link is dead: see also copies of original material at readthedocs.io, computerworld.com.au and the University of South Carolina.
"Bourne Again Shell" is a play on the name Bourne Shell, which was the usual shell on Unix.
The name is a pun on the name of the Bourne shell (sh), an early and important Unix shell written by Stephen Bourne and distributed with Version 7 Unix circa 1978, and the concept of being "born again".
I've currently ported bash(1.08) and gcc(1.40), and things seem to work.
zsh2
was invoked but never defined (see the help page).© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search