Hacker News new | past | comments | ask | show | jobs | submit login

The Holy Grail of POSIX-portable shell scripts is irrelevant these days. Just use bash which is the default on most *nix systems.



Debian/ubuntu use dash for sh, instead of bash, which breaks a lot of scripts lazily assuming bash is sh.

Scripts that specify bash will work, assuming its installed though.


> *nix

"*nux", you mean.


I'll go a step further and say "just use zsh", which is clearly superior for scripting and installed so easily it hardly matters.

(aside: I don't think bash the "the default on most *nix systems"; it's not on BSD or macOS (which does ship with a very old bash), and while it's certainly common on Linux even there it's not universal)


Bash comes free. To get zsh I have to convince the sysadmins of the need for it. I'll stick with the (currently) lowest common denominator.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: