diff options
Diffstat (limited to 'hacking/env-setup')
-rw-r--r-- | hacking/env-setup | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hacking/env-setup b/hacking/env-setup index 16baa9b1b7..f52c91a8b9 100644 --- a/hacking/env-setup +++ b/hacking/env-setup @@ -16,6 +16,7 @@ if [ -n "$BASH_SOURCE" ] ; then HACKING_DIR=$(dirname "$BASH_SOURCE") elif [ $(basename -- "$0") = "env-setup" ]; then HACKING_DIR=$(dirname "$0") +# Works with ksh93 but not pdksh elif [ -n "$KSH_VERSION" ] && echo $KSH_VERSION | grep -qv '^@(#)PD KSH'; then HACKING_DIR=$(dirname "${.sh.file}") else |