Sunday 14 April 2013

Shell Scripting Debugging Settings


Most shell script programmers know the command

    set -vx

to print each script command before execution. Sometimes
the following flags are useful, too:


    set -e        # terminate the script at first error
    set -u        # unset variables are fatal errors

0 blogger-disqus:

Post a Comment