run.sh: print the command that runs
authorBrian Norris <banorris@uci.edu>
Tue, 4 Dec 2012 23:36:40 +0000 (15:36 -0800)
committerBrian Norris <banorris@uci.edu>
Tue, 4 Dec 2012 23:36:40 +0000 (15:36 -0800)
This will help understanding typos, script bugs, etc.

run.sh

diff --git a/run.sh b/run.sh
index c8dbeb4..00ffd94 100755 (executable)
--- a/run.sh
+++ b/run.sh
@@ -19,4 +19,5 @@ export LD_LIBRARY_PATH=.
 [ $# -gt 0 ] && [ "$1" = "gdb" ] && PREFIX=gdb && shift
 [ $# -gt 0 ] && [ -x "$1" ] && [ -f "$1" ] && BIN="$1" && shift
 
+set -x
 $PREFIX $BIN $@