Debugging a Bash Script
Debugging a Bash Script
Enabling verbose Mode
~]$ bash -v demo.sh |
Syntax Checking Using noexec Mode
~]$ bash -n demo.sh |
Debugging Using xtrace Mode
~]$ bash -x demo.sh |
Identifying Unset Variables
~]$ bash -u demo.sh |
Debugging Specific Parts of the Script
|
Bash Special Variables
|
Redirecting Only the Debug Output to a File
|
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.