X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/6a5170a8b5b36406e249eee93868f1b0e2acfd8b..9ab88c21bb34b98b11eecccfb248d6f1f4b51e3c:/bin/run-with-shell-env diff --git a/bin/run-with-shell-env b/bin/run-with-shell-env old mode 100644 new mode 100755 index ba0afcf..00181e3 --- a/bin/run-with-shell-env +++ b/bin/run-with-shell-env @@ -1,5 +1,6 @@ #! /bin/bash -x exec >/tmp/mdw/hacky.log 2>&1 +declare -a original_args=("$@") case ${__mdw_profile+t} in t) ;; *) @@ -10,4 +11,4 @@ case ${__mdw_profile+t} in set -x ;; esac -exec "$@" +exec "${original_args[@]}"