Skip to content
Tcl Source Code Artifact [ed41d4f516]
Login

Artifact [ed41d4f516]

Artifact ed41d4f516b8e846e1a4037ff0b905fb1bb6df7c:

Ticket change [ed41d4f516] - Ticket [5bfe3de008e6f7b5|5bfe3de008] <i>^Z appended to sourced VFS files</i> status still Open with 4 other changes by andy on 2017-08-14 16:13:59.
D 2017-08-14T16:13:59.931
J icomment It's\sunfortunate\sthat\sthe\sEOF\scharacter\s"append"\scode\sassumes\sit's\sin\sfact\ssought\s(seeked?)\sto\sthe\send\sof\sfile\sbefore\sit\sdoes\sits\sbusiness.\s\sI\shave\sa\squestion\sabout\sthat.\s\sDoes\sit\sfirst\scheck\sif\sthe\snext\scharacter\sin\sthe\sfile\sis\sthe\sEOF\scharacter,\sthen\select\snot\sto\swrite\san\sEOF?\s\sI\sthink\smore\slikely\sit\sassumed\sthat\sthe\srest\sof\sthe\sI/O\ssystem\swould\snever\slet\sthe\sfile\spointer\spass\sthe\sEOF,\sthen\swrites\sthe\sEOF\scharacter\sunconditionally,\s"knowing"\sit\swould\seither\soverwrite\sthe\sexisting\sEOF,\sor\sadd\sone\sif\sit\swasn't\sthere\salready.\s\sThis\stheory\sis\sconsistent\swith\sthe\sbehavior\sdemonstrated\sby\syour\s"Pest"\scode.\r\n\r\nAlso,\sas\syou\sdiscovered,\s[seek]\shas\snothing\sto\sdo\swith\striggering\sthe\s"append\sEOF".\s\sIt's\s[close]\sthat\sdoes\sthat.\s\sFrom\sthe\s[chan\sconfigure\s-eofchar]/[fconfigure\s-eofchar]\sman\spage:\s\s"For\soutput,\sthe\send-of-file\scharacter\sis\soutput\swhen\sthe\schannel\sis\sclosed."\s\sI\sthink\smaybe\sthe\s[close]/[chan\sclose]\sman\spage\sshould\sbe\supdated\sto\smention\sthis\sas\swell.
J login andy
J mimetype text/plain
J username Andy\sGoth
K 5bfe3de008e6f7b5863619a4f9c801d040ff5ab8
U andy
Z c982b037134e901d948e4609eda9917e