Shell Scripts (cont)
Tip: debugging for shell scripts
- the shell transforms commands before executing
- can be useful to know what commands are executed
- can be useful to know what transformations produced
-
set -c shows each command before transformation
-
set -x shows each command after transformation
i.e. execution trace
|