diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-05-02 14:17:31 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-05-02 14:17:31 +0200 |
commit | 1dd6cf867754030223fadd0f4d959039f713bfb1 (patch) | |
tree | 66d78ab21de9cdfaa4d66f90d63c15a5e04fd046 /shell/hush_test | |
parent | 54e0843e7dabc4f6d79781f8b07094dadacd4cd5 (diff) | |
download | busybox-w32-1dd6cf867754030223fadd0f4d959039f713bfb1.tar.gz busybox-w32-1dd6cf867754030223fadd0f4d959039f713bfb1.tar.bz2 busybox-w32-1dd6cf867754030223fadd0f4d959039f713bfb1.zip |
hush: fix multiple redirections of the same fd (bug 227)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-misc/redir6.right | 4 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/redir6.tests | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/redir6.right b/shell/hush_test/hush-misc/redir6.right new file mode 100644 index 000000000..a97c4bdf1 --- /dev/null +++ b/shell/hush_test/hush-misc/redir6.right | |||
@@ -0,0 +1,4 @@ | |||
1 | Testing multiple redirections to same fd | ||
2 | Hello | ||
3 | Done1 | ||
4 | Done2 | ||
diff --git a/shell/hush_test/hush-misc/redir6.tests b/shell/hush_test/hush-misc/redir6.tests new file mode 100755 index 000000000..c639ebb2d --- /dev/null +++ b/shell/hush_test/hush-misc/redir6.tests | |||
@@ -0,0 +1,5 @@ | |||
1 | echo "Testing multiple redirections to same fd" | ||
2 | # bug was making us lose fd #1 after this: | ||
3 | echo Hello >/dev/null 1>&2 | ||
4 | echo Done1 | ||
5 | echo Done2 >&2 | ||