Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 52a0faef885ec0e127e669db21de1788e74c939b
Ticket: a38779bd41ef87dc6eaf13fc20d8a29966fd3937
Tcl8,6 'read' doesn't notice a growing file
User & Date: anonymous on 2016-07-07 10:26:20
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Hello *.
    
    When I am reading continuously growing file
     with Tcl8.5 it's working as expected -
     Tcl 'read' command returns all the data which were added to the file
       after last 'read'
    But Tcl 8.6 calls system read just once in spite of file has been grown
      and a new Tcl command 'read' issued.
    
    I made on Linux (Debian 8.5)  growing file with:
    me:~$ while : ; do date >>nnn; sleep 1; done
    
    Tcl script:
    set f [open "nnn" r]
    while {1} {
        puts -nonewline [read $f]
    }
    
    on Tcl8.6 it prints only the data on the first 'read'
      ('strace' shows that wasn't any further attempt to call system 'read')
    on Tcl8.5 it prints all new data continuously.
    
    Am I missing something basic ?
    
    With regards,
       Andrey
    
    PS: I could find another suitable mail list publicly available to write.
    
  5. foundin changed to: "Tcl 8.6.2, 8.6.3"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "14683b2e3fb45b2f30f2b420d1f9a75ff9a82c32"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "25. Channel System"
  15. title changed to: "Tcl8,6 'read' doesn't notice a growing file"
  16. type changed to: "Bug"