Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f25c39dd9079b1fbc373a58dac32368d67c9c7ff
Ticket: 218308ffffffffffffffffffffffffffffffffff
source on a fifo works only every other time
User & Date: nobody on 2000-10-26 00:55:58
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3688 Bug
    Version: 8.0.3
    SubmitDate: '1999-11-24'
    LastModified: '2000-04-26'
    Severity: CRIT
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Linux-Red Hat
    Machine: Pentium Pro
    FixedDate: '2000-10-25'
    ClosedDate: '2000-04-26'
    
    
    Name: Jørgen Steensgaard
    
    ReproducibleScript:
    jsm 1941> cat demo
    #!/usr/bin/tclsh
    
    set src [lindex $argv 0]
    
    puts stderr "I will read from $src"
    
    source $src
    
    puts stderr " ... that's it"
    jsm 1942> cat tktest1
    puts {Testing one}
    jsm 1943> (cat tktest1 >> tkfifo) | demo tkfifo
    I will read from tkfifo
     ... that's it
    jsm 1944> ( cat tktest1 >> tkfifo ) | demo tkfifo
    I will read from tkfifo
    Testing one
     ... that's it
    
    ObservedBehavior:
    The above session shows
    
    1.  a program that will display the bad behaviour.  
    2.  the contents of a file to be sourced through a fifo
    3.  a call of the program with no reaction on the source
    4.  the same call with the expected reaction
    
    Going on leads to an alternation between erroneous and correct behaviour.
    
    DesiredBehavior:
    I would expect to see the correct behaviour every time.
    
    
    
    The user likely has a different unix shell with different default
    behavior, because for me you can't >>tkfifo without having tkfifo
    exist first.  So I did:
    
    vitoria [~/tmp/3688] 13 % cat >! tkfifo
    vitoria [~/tmp/3688] 14 % ( cat tktest1 >> tkfifo ) | demo tkfifo
    I will read from tkfifo
    Testing one
     ... that's it
    vitoria [~/tmp/3688] 15 % ( cat tktest1 >> tkfifo ) | demo tkfifo
    I will read from tkfifo
    Testing one
    Testing one
     ... that's it
    
    Creating the empty tkfifo first, and all seems to work.  This is
    on RedHat with tcsh and tcl8.0.4. 
    -- 04/26/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.0.3"
  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: "60. NRE and coroutines"
  10. title changed to: "source on a fifo works only every other time"
  11. type changed to: "Bug"