summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/sh.testcases6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sh.testcases b/tests/sh.testcases
index 9b5c8da..88e709f 100644
--- a/tests/sh.testcases
+++ b/tests/sh.testcases
@@ -28,6 +28,12 @@ if false; then tr 'A-Z' 'a-z'; else echo bar4; fi <foo
if true || false; then echo foo; else echo bar5; fi
if true && false; then echo bar6; else echo foo; fi
+# make sure we can duplicate file descriptors properly
+echo replacement >foo 2>&1
+cat foo
+cat doesnt_exist >foo 2>&1
+tr 'a-z' 'A-Z' <foo
+
# fairly simple example of hush expanding variables too early
unset TMP
rm -f fish