Added a new testcase from Larry Doolittle (inspired by a note from Vadim
authorMatt Kraai <kraai@debian.org>
Tue, 5 Jun 2001 17:48:47 +0000 (17:48 -0000)
committerMatt Kraai <kraai@debian.org>
Tue, 5 Jun 2001 17:48:47 +0000 (17:48 -0000)
Berkgaut).

tests/sh.testcases

index 9b5c8da597e2131809d15fc9b7d8ee9086f46af1..88e709f879b8851f2d924359477f192d379c349b 100644 (file)
@@ -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