4 ms·
> I especially hate it when people shove #!/bin/bash as a shebang It really ought to be `#!/usr/bin/env bash` , if you're writing a bash script. That'll solve
by Alupis 8y ago
> I especially hate it when people shove #!/bin/bash as a shebang
It really ought to be `#!/usr/bin/env bash` , if you're writing a bash script. That'll solve the location problem.
Otherwise, if it's a bash script, you can't get around needing bash on your system (although a great many bash scripts are actually "sh" shell scripts that just happen to specify bash because people are used to that sort of thing).