|
2026-10-22
| ||
| 17:19 | • Ticket [627552ffff] bad pipe error message status still Closed with 3 other ... artifact: d39e4f23ad user: serhiy.storchaka | |
|
2026-10-21
| ||
| 09:58 | • Closed ticket [627552ffff]. artifact: 13fd34d9e0 user: serhiy.storchaka | |
|
2002-11-15
| ||
| 23:10 | • Ticket [627552ffff]: 2 changes artifact: 301234fc4c user: dkf | |
|
2002-10-23
| ||
| 15:43 | • New ticket [627552ffff]. artifact: ab55f6f090 user: nobody | |
bad pipe error message
Closed / Fixed627552ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 41 days ago
Descriptionplain2002-10-23 15:43:11
tclpipe.c
FileForRedirect
<@ channel-without-handle
chan = Tcl_GetChannel(interp, spec, NULL);
if (chan == (Tcl_Channel) NULL) {
return NULL;
}
file = TclpMakeFile(chan, writing ? TCL_WRITABLE :
TCL_READABLE);
if (file == NULL) {
Tcl_AppendResult(interp, "channel \"",
Tcl_GetChannelName(chan),
"\" wasn't opened for ",
((writing) ? "writing" :
"reading"), (char *) NULL);
return NULL;
}
on unix TclpMakeFile will return nil if the channel
has no handle
and not just bcause it wasnt readable
leading an incorrect and very confusing error message
the code should be something closer to
chan = Tcl_GetChannel(interp, spec, &mode);
if (!((writing ? TCL_WRITABLE :
TCL_READABLE)&mood)) {
Tcl_AppendResult(interp, "channel \"",
Tcl_GetChannelName(chan),
"\" wasn't opened for ",
((writing) ? "writing" :
"reading"), (char *) NULL);
return NULL;
}
file = TclpMakeFile(chan, writing ? TCL_WRITABLE :
TCL_READABLE);
if (file == NULL) {
Tcl_AppendResult(interp, "channel \"",
Tcl_GetChannelName(chan),
"\" some kind of message about
pipe cant deal with this kind of channel", (char *) NULL);
return NULL;
}
dkf Ticket [627552ffff]: 2 changes
[History diff]2002-11-15 23:10:10
serhiy.storchakawiki2026-10-21 09:58:25
Fixed in 8.5.8 and 8.6.0 by [9039eeb584] (8.5: [62c8e5320a]): a redirection from or to a channel without an OS handle now reports channel "x" does not support OS handles. See also [1106853fff].
serhiy.storchaka Ticket [627552ffff]: 3 changes
[History diff]2026-10-22 17:19:29
Log in (anonymous is fine) to add a comment.