books say that PATH variable contains the locations where the shell searches the commands to execute them.
I created a shell script and saved it in /home/user/Downloads directory and then i ran this script from the /home/user/Downloads directory. It did not execute.
however when i did set the path
export PATH=$PATH:/bin/sh within /home/user/Downloads directory, the shell script executed. Does it not mean that PATH variable is holding the locations of the shell program rather than the commands that are to be executed?
everytime i have to give the location of the shell i.e /bin/sh in the PATH variable no matter from where i am executing my script