Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Depends on your target. Bash is the LSB shell. If your scripts are only targeting Linux, then you should be able to safely assume bash is there. On Linux, by default, there isn't even a real Bourne shell anyway; it's a symlink to bash.

If you're writing cross-platform then yes, sh would be a better target, but a lot of environments are going to be Linux only.



"On Linux, by default, there isn't even a real Bourne shell anyway; it's a symlink to bash."

For a lot of Linux users (Debian/Ubuntu) /bin/sh is a symlink to dash.


Doesn't Ubuntu use dash by now?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: