summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatt Kraai2001-06-05 17:48:47 +0000
committerMatt Kraai2001-06-05 17:48:47 +0000
commit12422ffe3eb9a27f40a0e8dfd003010c374b7593 (patch)
treef0bb89a076995f6b95b1b5ca32c4191bf46ad0fe /tests
parentc616e53ca2d5a46ee5a2b7f272b1b611f01836eb (diff)
downloadbusybox-12422ffe3eb9a27f40a0e8dfd003010c374b7593.zip
busybox-12422ffe3eb9a27f40a0e8dfd003010c374b7593.tar.gz
Added a new testcase from Larry Doolittle (inspired by a note from Vadim
Berkgaut).
Diffstat (limited to 'tests')
-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