git clone https://github.com/equwal/tmpl
Log | Files | Refs
sh/trap/debug-trace (157 bytes)
1 # Enable debug tracing with cleanup 2 old_ps4=$PS4 3 PS4='+ $0:${LINENO}: ' 4 5 cleanup_debug() { 6 set +x 7 PS4=$old_ps4 8 } 9 trap cleanup_debug EXIT 10 11 set -x 12 <++>