146 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
147 |
emulate sh |
emulate sh |
148 |
NULLCMD=: |
NULLCMD=: |
149 |
[#] Zsh performs word splitting on ${1+"$[@]"}, which is contrary to |
[#] Zsh 3.x and 4.x performs word splitting on ${1+"$[@]"}, which |
150 |
# our usage. Disable this feature. |
# is contrary to our usage. Disable this feature. |
151 |
alias -g '${1+"$[@]"}'='"$[@]"' |
alias -g '${1+"$[@]"}'='"$[@]"' |
152 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
153 |
set -o posix |
set -o posix |