3 ms·
> If I run a shell script I wrote ten years ago, it works. I'll provide the counterexample. Any scripts I wrote more than 10 years ago for actual "Bourne shel
by bsder 7y ago
> If I run a shell script I wrote ten years ago, it works.
I'll provide the counterexample.
Any scripts I wrote more than 10 years ago for actual "Bourne shell" /bin/sh often fail in mysterious (and sometimes silent) ways when run under bash.
Bash is just as guilty of backward incompatibility as Python is. Python at least generally has the decency to squawk about it.
- scbrg 7y agoWell, I won't argue with that. When I say shell script, I mean POSIX. I never write bash scripts (although admittedly, I do miss pipefail).