Tcl8,6 'read' doesn't notice a growing file
Closed / Duplicatea38779bd41ef87dc6eaf13fc20d8a29966fd3937Created 10 years agoUpdated 10 years ago
Descriptionplain2016-07-07 10:26:20
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.
dgpplain2016-07-07 20:19:15
Dup of http://core.tcl.tk/tcl/tktview?name=08872796bc Long fixed and released in Tcl 8.6.4 and 8.6.5.
Log in (anonymous is fine) to add a comment.