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 c8dbeb46066c452d0c83260de684fdaf4e1eadf0..00ffd94b338c223710f15198e06f1fd40ca25509 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 $@