Menu

#2399 pipeline with empty last command not always recognized

obsolete: 8.4.12
closed-fixed
7
2006-03-16
2003-07-09
Anonymous
No

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.

Discussion

  • Andreas Kupries

    Andreas Kupries - 2006-03-14

    Logged In: YES
    user_id=75003

    Still present in 8.4.12.
    Note: The file foobar is created, but empty.

     
  • Andreas Kupries

    Andreas Kupries - 2006-03-14
    • milestone: 304452 --> obsolete: 8.4.12
    • priority: 5 --> 7
     
  • Andreas Kupries

    Andreas Kupries - 2006-03-14

    8.4 branch patch fixing the bug

     
  • Andreas Kupries

    Andreas Kupries - 2006-03-14

    HEAD patch fixing the bug

     
  • Andreas Kupries

    Andreas Kupries - 2006-03-14

    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 Kupries

    Andreas Kupries - 2006-03-16

    Logged In: YES
    user_id=75003

    Committed to both 8.4 and HEAD branches.

     
  • Andreas Kupries

    Andreas Kupries - 2006-03-16
    • status: open --> closed-fixed