Bash is used by default in every Linux distro I have tried, over alternatives like zsh. Is there a technical or historical reason for this?
|
up vote
18
down vote
favorite
6
|
|||||||||||||||
|
migrated from stackoverflow.com
|
up vote
50
down vote
accepted
|
History (acquired not through research but through spending entirely too much time hanging out with Bell Labs people):
Lessons:
|
||||||||||||||
|
|
up vote
29
down vote
|
Bash has two completely different things going for it.
I should also add that it is not always the default. UPDATE: There is an inaccurate history of the shell being copied from place-to-place on the web, and people are understandably believing it. I will try to give an accurate version and provide a few links to substantiate it here.
|
||||||||||||
|
|
up vote
4
down vote
|
To add to what @DigitalRoss said
|
||
|
|
|
up vote
3
down vote
|
Because Linux is just the Kernel (and required support stuff) while GNU provides (or did provide) all the basic Unix software clones that make what we call "Linux" usable. Bash is the GNU project's shell written as a clone of the older Bourne shell (sh) from Unix Version 7. |
||||||||
|
|
up vote
0
down vote
|
Bash is widely accepted due to its rich set of features. It also adopts features from other shells like C-shell and Korn-shell. Please take a look at these set of features. |
||
|
|
|
up vote
0
down vote
|
Because 'bash' is 100% 'sh/ksh' compatable and 'ksh' is the POSIX shell. So if you want a POSIX compliant system, and you are on Linux then you use bash. If you are on a commercial unix you generally get ksh as the default shell (sometime plain just old sh). For some reason Sun still defaults to the flakey csh c-shell. The advantage is portability a .sh written for hp-ux or AIX has a good chance of running as a linux 'bash' without any changes. |
||
|
|
up vote
0
down vote
|
And to add to all other answers: I do use |
||
|
|