> shbang'd to bash.
Good.
Better: #!/bin/sh
Best: #!/bin/sh and also not assuming bash anyway!
Good.
Better: #!/bin/sh
Best: #!/bin/sh and also not assuming bash anyway!
It's easily done though, I've often thought I've written something POSIX compatible and then had shellcheck say nope.
#!/usr/bin/env sh
Since this binary is required by the POSIX standard to exist at that location.
Can we now say Well python2 is EOL so python should certainly be v3+?
It is of course a more general issue with shebangs that it's a very loose 'dynamically linked' coupling, not necessarily judt affecting language version but environment/libraries too, it just seems particularly problematic or prevalent with python.