Tcl Source Code

View Ticket
Login
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
07:02
Fix [2339907fff] and [1862356fff], regressions from [47d7a23bdf]: in the first pass of TclCreatePipe... leaf check-in: 622c092a53 user: serhiy.storchaka tags: exec-pipeline-words
2008-11-25
05:01 • Ticket [2339907fff] execing command that starts with 2 fails status still Op... artifact: 0d87b2f242 user: dkf
2008-11-24
20:09 • New ticket [2339907fff]. artifact: 44d4d5ced0 user: nobody

Ticket UUID: 2339907
Title: execing command that starts with 2 fails
Type: Bug Created on: 2008-11-24 20:09:59
Submitter: nobody Assigned to: andreas_kupries
Subsystem: 24. Channel Commands Severity:
Priority: 5 Medium Last modified: 2026-10-17 07:04:13
Status: Open Closed by:
Resolution: None Closed on:
Version: 8.6.18, 9.0.5, 9.1.0
Description:
Tcl Version: 8.4.19
OS: 32 bit and 64 bit Linux
Submitter: Robert Soliday ([email protected])
Problem Behavior:

When I try to exec a command of the name 2DSlider I get the error message:
illegal use of | or |& in command
tclPipe.c is flagging the number 2 as a redirection character.

For now I can just create a symlink with a different name but I just thought someone should know about this bug. It took me a while to figure out what the heck was happening.
User Comments:
serhiy.storchaka added on 2026-10-17 07:04:13:

Regression since 8.4.13 from [47d7a23bdf] (the fix for [768659]): in the first pass of TclCreatePipeline() a word starting with "2" that is not a "2>" redirection does not count as a command, so [exec 2DSlider] fails with "illegal use of | or |& in command". Proposed fix in branch exec-pipeline-words, test exec-23.1. It also fixes [1862356fff].