Hacker News new | ask | show | jobs
by arka2147483647 416 days ago
Seems to me, that to some Linux has come to mean all things Unix-ly
1 comments

Yes it seems to be misused that wat - now just try to rerun scripts on macOS or BSD when the author thinks Linux is all there is.
That's usually caused by assuming that everything is bash, which is not true even for Linux.
While that may certainly arise if someone is lazy about #!/bin/sh when they didn't really mean /bin/sh I'd bet it's /bin/sed and similar friends that are different between the GNU versions and the BSD versions. So much make-macro-trickery out there when one is trying to use -i without a backup suffix, and I have no idea why GNU tried to be a trailblazer with their parsing :(
Yes - I come from an era when I used multiple Unixes and for several of them default shell was (t)csh.

Don't assume anything in shells except POSIX sh.

Unfortunately there are people who think Linux is the only way.