Merge pull request #10466 from eest/env-setup_pdksh

env-setup: Don't use ${.sh.file} if shell is pdksh
pull/4420/head
Toshio Kuratomi 2015-03-15 12:59:42 -07:00
commit 27be0421c0
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ if [ -n "$BASH_SOURCE" ] ; then
HACKING_DIR=$(dirname "$BASH_SOURCE")
elif [ $(basename -- "$0") = "env-setup" ]; then
HACKING_DIR=$(dirname "$0")
elif [ -n "$KSH_VERSION" ]; then
elif [ -n "$KSH_VERSION" ] && echo $KSH_VERSION | grep -qv '^@(#)PD KSH'; then
HACKING_DIR=$(dirname "${.sh.file}")
else
HACKING_DIR="$PWD/hacking"