Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5a137036710ba20967e6ae040c2e06e7db336493
Ticket: 219408ffffffffffffffffffffffffffffffffff
fileevent on stdin not working
User & Date: nobody on 2000-10-26 05:12:33
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 6334 Bug
    Version: 8.3.2
    SubmitDate: '2000-10-02'
    LastModified: '2000-10-25'
    Severity: SER
    Status: UnAssn
    Submitter: techsupp
    OS: AIX
    Machine: 2 x 64 bit CPUs with 200.00 MHz each (Arch: Power PC/630,Power P
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Michael Bowen
    
    Extensions:
    None, well wish 8.3.2 if that counts...
    
    CustomShell:
    None
    
    ReproducibleScript:
    #!/usr/bin/wish
    # Just execute this script,  then enter some text and hit enter..
    proc handleIn {} {
      set f [gets stdin]
      puts "got \"$f\"";
      if {[string compare $f "Q"]==0} {
        exit;
      }
    }
    
    fileevent stdin readable handleIn;
    fconfigure stdin -blocking 0 -buffering line;
    
    puts [info tclversion]
    
    ObservedBehavior:
    The  handleIn proc is never called..  It works with earlier version of tcl, and also works with 8.3.2 under linux, but not on aix 4.3.2.
    
    DesiredBehavior:
    I would expect the handleIn proc to be called, and the text you enetered to be repeated.  When you enter a "Q"
    the script should terminate.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.3.2"
  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: "fileevent on stdin not working"
  11. type changed to: "Bug"