Hello all. I'm using something called the advanced Bash-Scripting Guide to learn some stuff. The guide say's:
 Why not simply invoke the script with scriptname? If the directory you are in ($PWD) is where scriptname is located, why doesn't this work?
This fail's because for security reason's, the current directory ,"." is not included in a user's $PATH, it is therefore necessary to explicitly invoke the script in the current directory with a ./scriptname.
We'll, i was wondering why my system could do this, invoke the script with 'scriptname', i looked in '/etc/profile'
and sure enough the line:
# For non-root users, add the current directory to the search path:
if [ ! "`id -u`" = "0" ]; then
So should my system be changed, or should the book be fixed..is this a security problem? (assuming the book is referring to non-root)
Humbled by any reply's, Tart's.