Overview
| Artifact ID: | 08c9908eeb7806b2c12d6cb5f166c8f7e39824b3 |
|---|---|
| Ticket: | 5adc3506834c2aacc613cd0df7de6f07a728c0aa
'gets' repeated after EOF doesn't work |
| User & Date: | dgp on 2014-10-26 19:00:16 |
Changes
- assignee changed to: "dgp"
- icomment:
You will find the same results in 8.5.16 and 8.6.17. A reworking of I/O leading up to 8.5.16 and 8.6.2 included as one of its premises that "EOF" means "end of any new bytes to be read from this channel". There a number of reasons for this, which I won't go into in detail right at the moment. (Better to be correct than to be quick.) While I ponder the use case in this ticket and whether and how it might prompt an effort to recover what it desires, I can at least offer a way to accomplish what is desired. Between the [exec cat....] and the final [puts ...] commands in the demo script above, insert this command: seek $h 0 current The resulting modified script should work as you wish in all new and old Tcl interps.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "7 High"
- title changed to: "'gets' repeated after EOF doesn't work"