3 ms·
I freaking love "set -x" and wish every language had an equivalent. When I switch from bash to another language I miss "set -x" deep in my soul.
by danielweber 12y ago
I freaking love "set -x" and wish every language had an equivalent. When I switch from bash to another language I miss "set -x" deep in my soul.
- planckscnst 12y agoruby http://unroller.rubyforge.org/ http://unroller.rubyforge.org/ python https://docs.python.org/2/library/trace.html https://docs.python.org/2/library/trace.html perl http://search.cpan.org/~mjd/Devel-Trace-0.10/Trace.pm http://search.cpan.org/~mjd/Devel-Trace-0.10/Trace.pm
- lordlarm 12y ago"set -x" enables debug-mode, for anyone else heading off to Google to investigate. So given the script: #!/bin/bash set -x echo "Hello World" The output would be: + echo 'Hello World!' Hello World! Where the "+ ..." is the command executed. And it can be disabled with "set +x".
- vdm 12y agoI agree, and refer to it as a 'call trace'. Not to be confused with stack traces, which are the same thing inside out.