4 ms·
If you put a shebang in your shell scripts, then you have nothing to worry about.
by Fiahil 7y ago
If you put a shebang in your shell scripts, then you have nothing to worry about.
- _bxg1 7y agoExcept the article suggested they might remove bash from macOS altogether at some point, which would make that a pain
- rootbear 7y agoThat would be unfortunate, and would probably require /bin/bash to be a symlink to either /bin/zsh or /bin/sh to prevent many scripts from failing. For portability reasons, I always use #!/bin/sh unless I actually use some bash feature(s), but a lot of scripts explicitly invoke bash even when they don't have to.
- the_jeremy 7y agoThey already are stuck at some version of Bash that's been out of date for almost a decade because Bash changed its licensing on the newer releases.
- _bxg1 7y agoRight, but some of us care more about cross-compatibility in our shell than shiny new features