From 51527612d3162fde31c41d7183320365856f2aae Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Tue, 30 Sep 2014 17:06:56 -0700 Subject: Don't leave is_block in bad state after bad redirection Fixes #1728. --- tests/status.in | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/status.in (limited to 'tests/status.in') 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 -- cgit v1.2.3