diff --git a/src/cmd/ksh93/tests/subshell.sh b/src/cmd/ksh93/tests/subshell.sh index edd11b3ba..7279f6cd3 100755 --- a/src/cmd/ksh93/tests/subshell.sh +++ b/src/cmd/ksh93/tests/subshell.sh @@ -625,7 +625,7 @@ $SHELL <<- \EOF EOF for f in /dev/stdout /dev/fd/1 -do if [[ -e $f ]] +do if "${ whence -p test; }" -e "$f" then $SHELL -c "x=\$(command -p tee $f /dev/null)" || err_exit "$f in command substitution fails" fi done