mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Do not redirect to / in status.in/err test.
This commit is contained in:
parent
ea45541d53
commit
58425ed463
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
<W> fish: An error occurred while redirecting file '/'
|
||||
<W> fish: An error occurred while redirecting file '.'
|
||||
open: Is a directory
|
||||
status: Invalid combination of options,
|
||||
you cannot do both 'is-interactive' and 'is-login' in the same invocation
|
||||
|
|
|
@ -10,7 +10,7 @@ end
|
|||
|
||||
# Issue #1728
|
||||
# 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
|
||||
and echo '"status -b" unexpectedly returned true after bad redirect on a begin block'
|
||||
|
||||
|
|
Loading…
Reference in a new issue