aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/status.in
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-09-30 17:06:56 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-09-30 17:06:56 -0700
commit51527612d3162fde31c41d7183320365856f2aae (patch)
treef1d1703cc516d3a5d34e4f75d4547d70c7ac8e55 /tests/status.in
parentc181de1d7fa46821c7a89633e3ab3639d89fd2a3 (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.in9
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