summaryrefslogtreecommitdiff
path: root/Dh_Haskell.sh
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2015-04-28 08:22:00 +0000
committerJoachim Breitner <mail@joachim-breitner.de>2015-04-28 08:22:00 +0000
commitfd431aae375932fd8d92b01396ca572ca6f6762c (patch)
treecac1355cffc33745a85fc1d58b5005349d505ed3 /Dh_Haskell.sh
parentefee6e848f488ebc26e50af27fd0c4c47ccf7975 (diff)
Add handy "run" shell function for better debugging
Diffstat (limited to 'Dh_Haskell.sh')
-rw-r--r--Dh_Haskell.sh7
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'
}