hush: fix multiple redirections of the same fd (bug 227)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-05-02 14:17:31 +02:00
parent 54e0843e7d
commit 1dd6cf8677
3 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
Testing multiple redirections to same fd
Hello
Done1
Done2

View File

@@ -0,0 +1,5 @@
echo "Testing multiple redirections to same fd"
# bug was making us lose fd #1 after this:
echo Hello >/dev/null 1>&2
echo Done1
echo Done2 >&2