Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 46db7ef85e600050bb4121b73956c227c2910d82
Ticket: 217807ffffffffffffffffffffffffffffffffff
console1 wasn't opened for writing under win32
User & Date: nobody on 2000-10-26 00:43:57
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1191 Bug
    Version: 8.1b1
    SubmitDate: '1999-02-11'
    LastModified: '1999-09-16'
    Severity: MED
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    RelatedBugIDs: 582
    OS: Windows NT
    OSVersion: Workstation NT4.0
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '1999-09-16'
    
    
    Name:
    Aldo MAZZILLI
    
    ReproducibleScript:
    if [catch {open "|sh 2>@ stdout" r+} input] {
                    Error
            } else {
                    fconfigure $input -buffering none
                    fileevent $input readable Log
            }
    ...
    
    proc Log {} {
            global input
            if {[gets $input line]<0} {
                    close $input
            } else {
                    .f.text insert end $line\n
                    .f.text see end
            }
    }
    
    PutCmd {} {
             puts $input "$cmd \n"
    }
    
    ObservedBehavior:
    I'm trying to port a TCL script from SUN-OS to Win32 and I have the
    following message "console1 wasn't opened for writing" when I 'puts' a
    command in a pipeline.
    
    DesiredBehavior:
    The pipelined Shell must run the command that the user 'puts' on it and must get everything on stdout and stderr in order to display the both results in a text widget.
    Everything works correctly under Sun-OS but fails under win32.
    
    
    
    This is user error.  There is a difference in stdin, stdout, stderr from Unix to Windows.  Redman has been working on Windows consoles, so this may be fixed soon.  03/23/1999 18:11 - surles -
    
    
    
  4. foundin changed to: "obsolete: 8.1b1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "console1 wasn't opened for writing under win32"
  11. type changed to: "Bug"