Remove caret redirection

This removes the caret as a shorthand for redirecting stderr.

Note that stderr may be redirected to a file via 2>/some/path...
and may be redirected with a pipe via 2>|.

Fixes #4394
This commit is contained in:
Peter Ammon
2018-04-01 13:43:05 -07:00
parent 7659554dea
commit 5b489ca30f
11 changed files with 28 additions and 47 deletions

View File

@@ -88,7 +88,7 @@ if begin; rm -rf test6.tmp.dir; and mkdir test6.tmp.dir; end
end
popd
if begin
set -l PATH $PWD/test6.tmp.dir $PATH ^/dev/null
set -l PATH $PWD/test6.tmp.dir $PATH 2>/dev/null
complete -C$dir | grep "^$dir/.*Directory" >/dev/null
end
echo "incorrect implicit cd from PATH"