Hello,
the shell standard section on Command Search and Execution, says 
command shall be searched for using the PATH environment variable as described 
in XBD Environment Variables 
and that section says the value of PATH is split into a list and 
"The list shall be searched from beginning to end, applying the filename to 
each prefix, until an executable file with the specified name and appropriate 
execution permissions is found".

Well, that is not how both dash and bash behave.  They do not search until an 
exec file with appropriate permissions is found.  They stop when a regular file 
or a symlink is found.  Then, if that does not refer to an executable with 
correct permissions, they do not continue but issue an error.  
Is the standard wrong, are bash and dash wrong or am I wrong?
Thank you,
Mark

 


Reply via email to