Commit caf2a96e by Toshio Kuratomi

Merge pdksh fix to v2

parent 27be0421
...@@ -16,6 +16,7 @@ if [ -n "$BASH_SOURCE" ] ; then ...@@ -16,6 +16,7 @@ if [ -n "$BASH_SOURCE" ] ; then
HACKING_DIR=$(dirname "$BASH_SOURCE") HACKING_DIR=$(dirname "$BASH_SOURCE")
elif [ $(basename -- "$0") = "env-setup" ]; then elif [ $(basename -- "$0") = "env-setup" ]; then
HACKING_DIR=$(dirname "$0") HACKING_DIR=$(dirname "$0")
# Works with ksh93 but not pdksh
elif [ -n "$KSH_VERSION" ] && echo $KSH_VERSION | grep -qv '^@(#)PD KSH'; then elif [ -n "$KSH_VERSION" ] && echo $KSH_VERSION | grep -qv '^@(#)PD KSH'; then
HACKING_DIR=$(dirname "${.sh.file}") HACKING_DIR=$(dirname "${.sh.file}")
else else
......
...@@ -16,7 +16,8 @@ if [ -n "$BASH_SOURCE" ] ; then ...@@ -16,7 +16,8 @@ if [ -n "$BASH_SOURCE" ] ; then
HACKING_DIR=$(dirname "$BASH_SOURCE") HACKING_DIR=$(dirname "$BASH_SOURCE")
elif [ $(basename -- "$0") = "env-setup" ]; then elif [ $(basename -- "$0") = "env-setup" ]; then
HACKING_DIR=$(dirname "$0") HACKING_DIR=$(dirname "$0")
elif [ -n "$KSH_VERSION" ]; then # Works with ksh93 but not pdksh
elif [ -n "$KSH_VERSION" ] && echo $KSH_VERSION | grep -qv '^@(#)PD KSH'; then
HACKING_DIR=$(dirname "${.sh.file}") HACKING_DIR=$(dirname "${.sh.file}")
else else
HACKING_DIR="$PWD/hacking" HACKING_DIR="$PWD/hacking"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment