Artifacts Associated With Ticket 1862356fff
Ticket change [1395f2fa35] (rid 124245) by demillar on 2008-01-02 18:42:46:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "obsolete: 8.4.13"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "demillar"
- subsystem initialized to: "25. Channel System"
- title initialized to:
arguments to TclCreatePipeline cannot start with '|'
- type initialized to: "Bug"
Ticket change [2682b66c1f] (rid 88358) by nobody on 2008-01-04 01:04:05:
- icomment:
Logged In: NO works if you separate the "|" from foo % exec echo | foo or % exec echo |& foo (8.4.14)
- login: "[email protected]"
- mimetype: "text/plain"
- username: "[email protected]"
- icomment:
Ticket change [29a5e5f8da] (rid 88902) by dkf on 2008-01-04 05:18:09:
- 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. - login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [8eb6eafa7c] (rid 258414) by serhiy.storchaka on 2026-10-17 07:04:13:
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- 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].
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [8ba0640c89] (rid 263352) by jan.nijtmans on 2026-11-27 12:26:59:
- assignee changed to: "jan.nijtmans"
- closer changed to: "nobody"
- 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
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Pending"
Ticket change [907ca66434] (rid 263418) by jan.nijtmans on 2026-11-27 15:28:18:
- icomment: "Merged to [0c63a59973|trunk]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"