Artifacts Associated With Ticket 627552ffffffffff
Ticket change [ab55f6f090] (rid 101086) by nobody on 2002-10-23 15:43:11:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
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; } - foundin initialized to: "obsolete: 8.4.0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "bad pipe error message"
- type initialized to: "Bug"
Ticket change [301234fc4c] (rid 93183) by dkf on 2002-11-15 23:10:10:
- assignee changed to: "andreas_kupries"
- subsystem changed to: "25. Channel System"
Ticket change [13fd34d9e0] (rid 259687) by serhiy.storchaka on 2026-10-21 09:58:25:
- icomment:
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 <tt>channel "x" does not support OS handles</tt>. See also [1106853fff].
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment:
Ticket change [d39e4f23ad] (rid 259985) by serhiy.storchaka on 2026-10-22 17:19:29:
- closedate changed to: "2461334.9155704863"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"