3 ms·
> 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 o
by mbreese 3y 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”).
- rascul 3y ago> SH code is completely portable Not exactly. https://stackoverflow.com/questions/11376975/is-there-a-minimally-posix-2-compliant-shell/16376043#16376043 https://stackoverflow.com/questions/11376975/is-there-a-mini...