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

History Of Ticket 218339ffffffffff

Artifacts Associated With Ticket 218339ffffffffff

  1. Ticket change [f9ffc5cd18] (rid 91794) by nobody on 2000-10-26 00:56:25:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 3985 RFE
      Version: 8.0.5
      SubmitDate: '2000-01-06'
      LastModified: '2000-01-10'
      Severity: MED
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Solaris
      FixedDate: '2000-10-25'
      ClosedDate: '2000-01-10'
      
      
      Name:
      Krzysztof Kozminski
      
      DesiredBehavior:
      Did anyone ever complain that Tcl pipes don't work very well with
      processes that pass out some of their output via exit status, such
      as the unix 'diff' command?
      
      I find this example rather annoying:
      
      % open [list | diff $file1 $file2 | wc]
      file7
      % read file7
           639    3230   19434
      
      % close file7
      child process exited abnormally
      
      There is nothing abnormal here; diff exits with status 1 if it
      finds differences.  Presently, I have to do some ridiculous
      convolutions like:
      
      % open  [list | /bin/sh -c "diff '$file1' '$file2';exit 0" | wc]
      
      which work fine until I have a filename with funny characters
      in it.  Tcl pipe is much nicer in enabling me to work with
      arbitrary filenames.
      
      It would be nice to have some control over what exit status
      is considered abnormal.  Perhaps something like:
      
      pid fileId pIndex -exitok expression
      
      where pIndex would be the address of the process in the pipe,
      and expression would be a Tcl expression in which '#' would
      stand for the exit status.
      
      In my example, I would do:
      
      % open "| diff .cshrc .login | wc"
      % pid file7 0 {(# == 0) == (# == 1)}
      
      Or maybe 'close' should return a list of exit status values for
      the user to decide whether they were abnormal or not.  Something
      like:
      
      % close file7 -getexits
      1 0
      
      
      
      This RFE wants to allow for !0 exit codes to be considered
      "normal" exits, which goes against the grain of Tcl and the
      de facto standard for exit status.  We understand that there
      are a few commands in Unix which return !0 after "normal"
      execution, but these can still be handled, and as special
      cases should be. 
      -- 01/10/2000 hobbs
      
    4. foundin initialized to: "final: 8.0.5"
    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: "63. (unused)"
    10. title initialized to: "Gripes about pipes"
    11. type initialized to: "Bug"
  2. Ticket change [5b77661580] (rid 118332) by welch on 2000-10-26 08:20:07:

    1. closedate changed to: "2000-10-26T01:20:07"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [beb15a4213] (rid 102120) by dgp on 2001-04-01 01:47:57:

    1. subsystem changed to: "27. Channel Types"
  4. Ticket change [0517923a94] (rid 88996) by dgp on 2001-04-01 01:47:59:

    1. closedate changed to: "2001-03-31T18:47:59"
    2. closer changed to: "dgp"