I am under the impression that if I include the line
at the start of my file, it will be recognized as a bash script that I can run just by
But in my case,
file.sh gives something like
test.sh: command not found. Why is that?
I notice I need to use
./. But I thought it will look in the current directory anyway?