diff options
author | Kevin Ballard <kevin@sb.org> | 2014-09-30 17:06:56 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-09-30 17:06:56 -0700 |
commit | 51527612d3162fde31c41d7183320365856f2aae (patch) | |
tree | f1d1703cc516d3a5d34e4f75d4547d70c7ac8e55 /tests/status.in | |
parent | c181de1d7fa46821c7a89633e3ab3639d89fd2a3 (diff) |
Don't leave is_block in bad state after bad redirection
Fixes #1728.
Diffstat (limited to 'tests/status.in')
-rw-r--r-- | tests/status.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/status.in b/tests/status.in new file mode 100644 index 00000000..14dff232 --- /dev/null +++ b/tests/status.in @@ -0,0 +1,9 @@ +# vim: set filetype=fish: + +# 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 'block' + +true |