mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
184110c2e7
This reverts commit 3b3fde1c5e
.
17 lines
305 B
Fish
17 lines
305 B
Fish
# vim: set filetype=fish:
|
|
|
|
status -b
|
|
or echo 'top level'
|
|
|
|
begin
|
|
status -b
|
|
end
|
|
and echo 'block'
|
|
|
|
# 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
|
|
status -b
|
|
and echo 'unexpected block'
|
|
|
|
true
|