Symptom:
[exec echo foo | >foobar ]
should throw an exception just like
[exec echo foo | ]
Bug-description:
for each "|" or "|&" the code checks, whether that was
the last argument, and if so: throws an error.
Thereby it misses those cases where only redirections
follow the last pipe.
Logged In: YES
user_id=75003
Still present in 8.4.12.
Note: The file foobar is created, but empty.
8.4 branch patch fixing the bug
HEAD patch fixing the bug
Logged In: YES
user_id=75003
I have attached patches for head and 8.4. They compile, pass
the testsuite and detect a | followed only by redirections
as error. I ask for testing on other systems.
Logged In: YES
user_id=75003
Committed to both 8.4 and HEAD branches.