diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2015-04-28 08:22:00 +0000 |
---|---|---|
committer | Joachim Breitner <mail@joachim-breitner.de> | 2015-04-28 08:22:00 +0000 |
commit | fd431aae375932fd8d92b01396ca572ca6f6762c (patch) | |
tree | cac1355cffc33745a85fc1d58b5005349d505ed3 /Dh_Haskell.sh | |
parent | efee6e848f488ebc26e50af27fd0c4c47ccf7975 (diff) |
Add handy "run" shell function for better debugging
Diffstat (limited to 'Dh_Haskell.sh')
-rw-r--r-- | Dh_Haskell.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Dh_Haskell.sh b/Dh_Haskell.sh index fbce549..0a1b4ea 100644 --- a/Dh_Haskell.sh +++ b/Dh_Haskell.sh @@ -1,3 +1,10 @@ +run () { + echo -n "Running" + printf " %q" "$@" + echo + "$@" +} + cpu(){ ghc -e 'putStr System.Info.arch' } |