Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-17
07:04 • Ticket [1862356fff] arguments to TclCreatePipeline cannot start with '|'... artifact: 8eb6eafa7c user: serhiy.storchaka
07:04 • Ticket [2339907fff] execing command that starts with 2 fails status still Op... artifact: 236049772d user: serhiy.storchaka
2006-03-16
07:39 • Closed ticket [768659ffff]: pipeline with empty last command not always recogniz... artifact: e244a7e53d user: andreas_kupries
2006-03-15
06:43 • Ticket [768659ffff]: 4 changes artifact: cb2f8a952f user: andreas_kupries
06:34 • Ticket [768659ffff]: 4 changes artifact: e56d8a5ddb user: andreas_kupries
06:34 • Add attachment pipe.85.udiff to ticket [768659ffff] artifact: 2296cd0004 user: andreas_kupries
06:34 • Add attachment pipe.84.udiff to ticket [768659ffff] artifact: a64a61f3fd user: andreas_kupries
06:34 • Ticket [768659ffff] pipeline with empty last command not always recognized s... artifact: 4d67dfc28e user: andreas_kupries
05:18 • Ticket [768659ffff]: 6 changes artifact: c381354eca user: andreas_kupries
2003-07-09
18:53 • New ticket [768659ffff]. artifact: ccdff4d10e user: nobody

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: