pipeline with empty last command not always recognized
Closed / Fixed768659ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 21 years ago
Descriptionplain2003-07-09 18:53:11
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.
andreas_kupriesplain2006-03-15 05:18:40
Logged In: YES user_id=75003 Still present in 8.4.12. Note: The file foobar is created, but empty.
andreas_kupriesplain2006-03-15 06:34:26
File Added - 170925: pipe.84.udiff
andreas_kupriesplain2006-03-15 06:34:52
File Added - 170926: pipe.85.udiff
andreas_kupriesplain2006-03-15 06:43:53
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.
andreas_kupriesplain2006-03-16 07:39:36
Logged In: YES user_id=75003 Committed to both 8.4 and HEAD branches.
Log in (anonymous is fine) to add a comment.
Attachments:
- pipe.85.udiff [download] added by andreas_kupries on 2006-03-15 06:34:51. [details]
- pipe.84.udiff [download] added by andreas_kupries on 2006-03-15 06:34:26. [details]