aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-12-24 14:30:25 +0100
committerAdrian Kummerlaender2015-12-24 14:30:25 +0100
commit9975a920820cd85e5b1d276bd1eae0dacf6b56a0 (patch)
treed4a241f5dfaef8a7ebd92745079443250d2d01f5
parentb94b106f3de718893e0c1ce7a1c9a081c189aefb (diff)
downloadchange-9975a920820cd85e5b1d276bd1eae0dacf6b56a0.tar
change-9975a920820cd85e5b1d276bd1eae0dacf6b56a0.tar.gz
change-9975a920820cd85e5b1d276bd1eae0dacf6b56a0.tar.bz2
change-9975a920820cd85e5b1d276bd1eae0dacf6b56a0.tar.lz
change-9975a920820cd85e5b1d276bd1eae0dacf6b56a0.tar.xz
change-9975a920820cd85e5b1d276bd1eae0dacf6b56a0.tar.zst
change-9975a920820cd85e5b1d276bd1eae0dacf6b56a0.zip
Evaluate all `change` arguments sans the first one
i.e. enable writing `change vim test` instead of `change "vim test"`.
-rwxr-xr-xchange5
1 files changed, 1 insertions, 4 deletions
diff --git a/change b/change
index 93e1077..5d1877a 100755
--- a/change
+++ b/change
@@ -1,11 +1,8 @@
#!/usr/bin/bash
-export LD_PRELOAD=libChangeLog.so
export CHANGE_LOG_TARGET="/tmp/$(basename $0).$$.tmp"
-eval "$1"
-
-export LD_PRELOAD=""
+LD_PRELOAD=libChangeLog.so eval "$@"
cat $CHANGE_LOG_TARGET
rm -f $CHANGE_LOG_TARGET