shebangs (#!/bin/bash) are important in scripts.
Whats more important is WHERE they are!
Troubleshooting why a colleagues script doesnt work when doing ./script.sh and yet bash -x script.sh works fine.
I ask if the script has #!/bin/bash in line one, as ./ uses that
They say yes its in the script
Technically correct I guess. The person spent a few hours wondering why it wasnt working.