Hacker News new | ask | show | jobs
by mbreese 1041 days ago
> portable and reliable to use across Debian, Arch or RHEL based distributions

Until you try to use a newer feature or try the script in a Mac or BSD or any older bash.

SH code is completely portable, but bash itself can have quite a few novel features. Don’t get me wrong - I’m happy the language is dynamic and still growing. But it can make things awkward when trying to use a script from a newer system on an older server (and the author has been “clever”).

1 comments

> SH code is completely portable

Not exactly.

https://stackoverflow.com/questions/11376975/is-there-a-mini...