39
Debugging
The shell has a number of flags that make debugging easier:
sh -n command
Read the shell script but don't execute the commands. IE. check syntax.
sh –x command
Display commands and arguments as they're executed. In a lot of my shell scripts you'll see
# Uncomment the next line for testing
# set -x
See also:
http://www.linux.org/docs/ldp/howto/Bash-Prog-Intro-HOWTO.html
Komentarze do niniejszej Instrukcji