projects
/
shellsnippets
/
shellsnippets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8ab8218
)
$0 is *not* set to the sourced script by the “dot” command!
author
mirabilos
<m@mirbsd.org>
Sun, 29 Nov 2015 18:43:00 +0000
(18:43 +0000)
committer
mirabilos
<m@mirbsd.org>
Sun, 29 Nov 2015 18:43:00 +0000
(18:43 +0000)
mksh/assoldap.ksh
patch
|
blob
|
history
diff --git
a/mksh/assoldap.ksh
b/mksh/assoldap.ksh
index
82a57f6
..
61683c0
100644
(file)
--- 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 -- \