From 2096c669d942044176d21e66445d981996b573b4 Mon Sep 17 00:00:00 2001 From: Jens Rantil Date: Wed, 4 Dec 2013 14:32:26 +0100 Subject: [PATCH] `env-setup` fix for zsh <= 4.3.10 This fixes issue #5026. It used to work. The regression was introduced in 2b3381de7c6e0924b29123c33f0627a12418f2c8. --- hacking/env-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hacking/env-setup b/hacking/env-setup index 38c372a79a..aedd078726 100755 --- a/hacking/env-setup +++ b/hacking/env-setup @@ -5,7 +5,7 @@ # When run using source as directed, $0 gets set to bash, so we must use $BASH_SOURCE if [ -n "$BASH_SOURCE" ] ; then HACKING_DIR=`dirname $BASH_SOURCE` -elif [ ${0:(-9)} = "env-setup" ]; then +elif [ $(basename $0) = "env-setup" ]; then HACKING_DIR=`dirname $0` else HACKING_DIR="$PWD/hacking"