Skip to content
Tcl Source Code History Of Ticket 627552ffffffffff
Login

History Of Ticket 627552ffffffffff

Artifacts Associated With Ticket 627552ffffffffff

  1. Ticket change [ab55f6f090] (rid 101086) by nobody on 2002-10-23 15:43:11:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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;
              }
      
      
    4. foundin initialized to: "obsolete: 8.4.0"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "18. Commands M-Z"
    10. title initialized to: "bad pipe error message"
    11. type initialized to: "Bug"
  2. Ticket change [301234fc4c] (rid 93183) by dkf on 2002-11-15 23:10:10:

    1. assignee changed to: "andreas_kupries"
    2. subsystem changed to: "25. Channel System"
  3. Ticket change [13fd34d9e0] (rid 259687) by serhiy.storchaka on 2026-10-21 09:58:25:

    1. 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].
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  4. Ticket change [d39e4f23ad] (rid 259985) by serhiy.storchaka on 2026-10-22 17:19:29:

    1. closedate changed to: "2461334.9155704863"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"