3 ms·
Very useful is: PS4='+ ${BASH_SOURCE:-}:${FUNCNAME[0]:-}:L${LINENO:-}: ' When using `set -x` this makes it so that it shows the filename, function name,
by graton 3y ago
Very useful is:
PS4='+ ${BASH_SOURCE:-}:${FUNCNAME[0]:-}:L${LINENO:-}: '
When using `set -x` this makes it so that it shows the filename, function name, and line number. Which in larger Bash scripts can be quite handy in debugging.
- e40 3y agoWOW! Thanks! Power user of BASH for a long time and I did not know this.