From c8899ef7339817dfa8357cca4053986fc067e659 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 9 Jan 2017 12:14:09 +0100 Subject: [PATCH] Pmodules/modulecmd - quote argument for dirname(1) - do NOT use 'declare -r' the variable 'bindir' (not all bourne-compatible shells are supporting this keyword) --- Pmodules/modulecmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/modulecmd b/Pmodules/modulecmd index 0dcb131..ba39772 100644 --- a/Pmodules/modulecmd +++ b/Pmodules/modulecmd @@ -2,5 +2,5 @@ unset BASH_ENV -declare -r bindir=$( cd $(dirname $0) && pwd -P ) +bindir=$( cd $(dirname "$0") && pwd -P ) "${bindir}/bash" --noprofile --norc "${bindir}/../libexec/modulecmd.bash" "$@"