Skip to content
Tcl Source Code History Of Ticket 1862356fff
Login

History Of Ticket 1862356fff

Artifacts Associated With Ticket 1862356fff

  1. Ticket change [1395f2fa35] (rid 124245) by demillar on 2008-01-02 18:42:46:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Any parameter to TclCreatePipeline which begins with a pipe symbol triggers the 'command needed' case, even if it's not just a | or |&.  This makes it impossible to pass any parameter to a child process which begins with a pipe symbol.
      
      The problem occurs on 8.4.13 but not on 8.4.7.  I haven't checked other versions.
      
      Example:
      
      (Tcl 8.4.7)
      % exec echo |foo
      |foo
      
      (Tcl 8.4.13)
      % exec echo |foo
      illegal use of | or |& in command
      
      
    4. foundin initialized to: "obsolete: 8.4.13"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "demillar"
    10. subsystem initialized to: "25. Channel System"
    11. title initialized to:
      arguments to TclCreatePipeline cannot start with '|'
      
    12. type initialized to: "Bug"
  2. Ticket change [2682b66c1f] (rid 88358) by nobody on 2008-01-04 01:04:05:

    1. icomment:
      Logged In: NO 
      
      works if you separate the "|" from foo
      % exec echo | foo
      
      or
      
      % exec echo |& foo
      
      (8.4.14)
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  3. Ticket change [29a5e5f8da] (rid 88902) by dkf on 2008-01-04 05:18:09:

    1. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      Depends on what you mean "works".
      
      Suggested workaround: I find that when things get tricky, it's better to do this:
        exec sh -c {echo '|foo'}
      And when I started using that trick for things exposed to users, my users got happier too; they prefer Unix shell syntax to Tcl's [exec] syntax. On windows, you can do something similar, possibly with the help of a batch script.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [8eb6eafa7c] (rid 258414) by serhiy.storchaka on 2026-10-17 07:04:13:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. icomment:
      Regression since 8.4.13 from [47d7a23bdf] (the fix for [768659]): the first pass of TclCreatePipeline() takes any word starting with "|" for a bar, although only "|" and "|&" are, so <nowiki>[exec echo |foo]</nowiki> fails with "illegal use of | or |& in command".
      Proposed fix in branch [/timeline?r=exec-pipeline-words|exec-pipeline-words], tests exec-23.2 and exec-23.3. It also fixes [2339907fff].
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  5. Ticket change [8ba0640c89] (rid 263352) by jan.nijtmans on 2026-11-27 12:26:59:

    1. assignee changed to: "jan.nijtmans"
    2. closer changed to: "nobody"
    3. comment changed to:
      Any parameter to TclCreatePipeline which begins with a pipe symbol triggers the 'command needed' case, even if it's not just a | or |&.  This makes it impossible to pass any parameter to a child process which begins with a pipe symbol.
      
      The problem occurs on 8.4.13 but not on 8.4.7.  I haven't checked other versions.
      
      Example:
      
      (Tcl 8.4.7)
      % exec echo |foo
      |foo
      
      (Tcl 8.4.13)
      % exec echo |foo
      illegal use of | or |& in command
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. severity changed to: "Minor"
    8. status changed to: "Pending"
  6. Ticket change [907ca66434] (rid 263418) by jan.nijtmans on 2026-11-27 15:28:18:

    1. icomment: "Merged to [0c63a59973|trunk]"
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"