aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/status.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/status.in')
-rw-r--r--tests/status.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/status.in b/tests/status.in
new file mode 100644
index 00000000..875f62f3
--- /dev/null
+++ b/tests/status.in
@@ -0,0 +1,17 @@
+# 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