Useful BASH debugging variables

Bash variable ${LINENO} show the line number in the current script which useful when debugging scripts. Like: #!/bin/bash echo .. foobar echo “${LINENO}” # print 4 Bash variables that I find useful for debugging are; ${BASH_COMMAND} → Last command ran ${BASH_LINENO[@]} → List line numbers up to that point ${FUNKNAME[@]} → List functions in stack […]

Hello world!

Welcome to 223 Hosting. I barely if ever post updates on here. If you see one, it’s a miracle.