From bd541376944d2a3ef1a7f48a0de43ccedef88f54 Mon Sep 17 00:00:00 2001 From: mirabilos Date: Sun, 29 Nov 2015 18:43:00 +0000 Subject: [PATCH 1/1] =?utf8?q?$0=20is=20*not*=20set=20to=20the=20sourced?= =?utf8?q?=20script=20by=20the=20=E2=80=9Cdot=E2=80=9D=20command!?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- mksh/assoldap.ksh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mksh/assoldap.ksh b/mksh/assoldap.ksh index 82a57f6..61683c0 100644 --- a/mksh/assoldap.ksh +++ b/mksh/assoldap.ksh @@ -25,8 +25,8 @@ # Generic LDAP (LDIF) parser into associative arrays. # include assockit, unless already done -mydir=$(realpath "$(dirname "$0")") -[[ -n $ASSO_VAL ]] || PATH="$mydir:$mydir/..:$PATH" . assockit.ksh +# contract: path to this script is in $PATH +[[ -n $ASSO_VAL ]] || . assockit.ksh # not NUL-safe set -A Tb64decode_tbl -- \ -- 2.1.4