Do not redirect to / in status.in/err test.

This commit is contained in:
Georgy Yakovlev 2017-08-17 09:24:14 -07:00 committed by Kurtis Rader
parent ea45541d53
commit 58425ed463
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
<W> fish: An error occurred while redirecting file '/' <W> fish: An error occurred while redirecting file '.'
open: Is a directory open: Is a directory
status: Invalid combination of options, status: Invalid combination of options,
you cannot do both 'is-interactive' and 'is-login' in the same invocation you cannot do both 'is-interactive' and 'is-login' in the same invocation

View file

@ -10,7 +10,7 @@ end
# Issue #1728 # Issue #1728
# Bad file redirection on a block causes `status --is-block` to return 0 forever. # Bad file redirection on a block causes `status --is-block` to return 0 forever.
begin; end >/ # / is a directory, it can't be opened for writing begin; end >. # . is a directory, it can't be opened for writing
status -b status -b
and echo '"status -b" unexpectedly returned true after bad redirect on a begin block' and echo '"status -b" unexpectedly returned true after bad redirect on a begin block'