Skip to content

Commit

Permalink
Merge pdksh fix to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
abadger committed Mar 15, 2015
1 parent 27be042 commit caf2a96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions hacking/env-setup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion v2/hacking/env-setup
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ 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
# Works with ksh93 but not pdksh
elif [ -n "$KSH_VERSION" ] && echo $KSH_VERSION | grep -qv '^@(#)PD KSH'; then
HACKING_DIR=$(dirname "${.sh.file}")
else
HACKING_DIR="$PWD/hacking"
Expand Down

0 comments on commit caf2a96

Please sign in to comment.