13

Debugging a script with noexec

view full story
linux-howto

http://www.unix.com – Newbie question. I cannot get "set -n" or "set -noexec on" to work on Linux or AIX! According to the man page and what I read online, it should inform me of syntax errors without executing commands in your script. So, can someone PLEASE explain why this does not work? ====================================== # WHAT I SHOULD SEE rochatk:/tmp # cat t1 #set -n echo test ech test1 rochatk:/tmp # ./t1 test ./t1: line 4: ech: command not found # REMOVE COMMENT FROM SET COMMAND rochatk:/tmp # vi t1 rochatk:/tmp # cat t1 set -n echo test ech test1 (HowTos)