Files
fish-shell/tests/status.in

19 lines
320 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.
set -gx LANG C
begin; end >/ # / is a directory, it can't be opened for writing
status -b
and echo 'unexpected block'
true