6 Followers
14 Following
51 Posts
I mess with ChatGPT

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.

#scripting #shell #bash #support #it #technology #security