Closed thetayloredman closed 2 years ago
Some people have 2 versions of bash, for example on my macOS machine I installed bash 5.2, but without disabling SIP it's impossible to put it in /bin/bash. #!/usr/bin/env bash will look for the bash in their $PATH.
#!/usr/bin/env bash
bash
$PATH
Some people have 2 versions of bash, for example on my macOS machine I installed bash 5.2, but without disabling SIP it's impossible to put it in /bin/bash.
#!/usr/bin/env bash
will look for thebash
in their$PATH
.