diff options
-rw-r--r-- | tests/sh.testcases | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sh.testcases b/tests/sh.testcases index 9b5c8da59..88e709f87 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 | |||
28 | if true || false; then echo foo; else echo bar5; fi | 28 | if true || false; then echo foo; else echo bar5; fi |
29 | if true && false; then echo bar6; else echo foo; fi | 29 | if true && false; then echo bar6; else echo foo; fi |
30 | 30 | ||
31 | # make sure we can duplicate file descriptors properly | ||
32 | echo replacement >foo 2>&1 | ||
33 | cat foo | ||
34 | cat doesnt_exist >foo 2>&1 | ||
35 | tr 'a-z' 'A-Z' <foo | ||
36 | |||
31 | # fairly simple example of hush expanding variables too early | 37 | # fairly simple example of hush expanding variables too early |
32 | unset TMP | 38 | unset TMP |
33 | rm -f fish | 39 | rm -f fish |