3 ms·
Obligatory pedantry: Bash is A shell. It's definitely not "The Shell".
by rubicks 4y ago
Obligatory pedantry: Bash is A shell. It's definitely not "The Shell".
- colordrops 4y agoIt kinda almost is though.
- JonathonW 4y agoWith Ubuntu using dash as its /bin/sh and macOS defaulting to zsh for interactive shells (I think their /bin/sh is still bash, but haven’t checked), this is probably the least true now that it’s been for a couple decades.
- bigDinosaur 4y agoAlso, as noted in another comment: windows has its own shell(s) which are entirely unrelated to bash.
- hyperhopper 4y agoPeople have said the same thing about sh. And neither bash nor sh are that great, so no reason to put down the idea that they shouldn't be the "default"
- chasil 4y agoBash is a chameleon. When called as /bin/sh or if the POSIXLY_CORRECT environment variable is set, it will act as a POSIX shell. If not, it will behave very differently. The one major difference that I know is that aliases will be ignored in the execution of a script, so "alias p=printf" will fail (for example). This is not POSIX-compliant.
- paskozdilar 4y agoAliases seem to work on Bash 5.0.17: #!/bin/sh alias p=printf p ok
- jwilk 4y agoTry with #!/bin/bash shebang.
- paskozdilar 4y agoAh, I misread the post. My bad.
- deleted 4y ago[deleted]
- tuxie_ 4y agoOver the past 10 years it has been losing market share to zsh and to a lesser extent, fish. It's really isn't anymore.