News for hackers. Stuff that matters.
Re:Pure sh bible – Posix sh alternatives to external processes by CDRdude on Monday October 19, 2020 @04:31PM (#24830661)

    > or, in the case of macOS a horribly outdated one.
The latest version of macOS defaults to zsh instead of the outdated version of bash.
Re:Pure sh bible – Posix sh alternatives to external processes by moondev on Monday October 19, 2020 @07:09PM (#24832060)
Doesn't matter when shebang is #!/bin/bash
Re:Pure sh bible – Posix sh alternatives to external processes by lilyball on Monday October 19, 2020 @06:52PM (#24831909)
That's just for the login shell. It still ships with /bin/bash, and /bin/sh still by default invokes bash (in sh compatibility mode). However there is a systemwide flag you can set to make /bin/sh run dash or zsh instead.
Re:Pure sh bible – Posix sh alternatives to external processes by patrec on Monday October 19, 2020 @05:42PM (#24831344)
That's mostly irrelevant, since basically no one writes shell code in zsh and this is unlikely to change that.
Re:Pure sh bible – Posix sh alternatives to external processes by ByteJockey on Monday October 19, 2020 @10:59PM (#24833547)
That's probably going to change with macs having it as the default.

Never underestimate the power of "Well, it worked on my machine"

People seem to be willing to do apt-gets (or equivalent) in docker files, I could see several of my old co-workers doing that just to get a script working.

Re:Pure sh bible – Posix sh alternatives to external processes by patrec on Tuesday October 20, 2020 @03:32AM (#24834739)
Unlikely. Apple have made the default interactive shell zsh, but /bin/bash still stays around and I believe /bin/sh still aliases to it by default. Meanwhile there is an enormous ecosystems of shell scripts including countless curl ... | bash installers which no one has any motivation to port to some shell which is not installed by default on most Linux distros. Although Microsoft would undoubtedly be delighted with Apple accelerating the move of developers to Windows as the Unix of choice, I'm not convinced even Apple's current management is going to be dumb enough to remove bash altogether.