News for hackers. Stuff that matters.
Re:Shell Style Guide by orzen on Tuesday May 15, 2018 @10:02AM (#17073960)
Bash is nowhere close for being de facto default shell for Linux. This is a bad analogy. In this case it is more like telling people that want to code Javascript to only write it in React. You got to go from something generic to something specific. Scripts written with bash will often rely on bash-specifics and can therefore only be interpreted by bash. There are entire projects dedicated to stop this plague. If you want to write portable shell scripts, use dash.

https://linux.die.net/man/1/checkbashisms https://mywiki.wooledge.org/Bashism https://wiki.ubuntu.com/DashAsBinSh https://en.wiktionary.org/wiki/bashism

Re:Shell Style Guide by raarts on Tuesday May 15, 2018 @10:52AM (#17074338)
> Bash is nowhere close for being de facto default shell for Linux.

Oh, yes it is. Every important distribution uses bash as the default.

Re:Shell Style Guide by umanwizard on Tuesday May 15, 2018 @11:44AM (#17074827)
Ubuntu has dash as /bin/sh.
Re:Shell Style Guide by jhasse on Tuesday May 15, 2018 @11:54AM (#17074893)
But bash as the login shell.
Re:Shell Style Guide by gkya on Tuesday May 15, 2018 @11:23PM (#17079799)
Login shell means your interactive shell. It does not necessarily mean that that shell should be used for scripting.