Skip to content
Tcl Source Code Artifact [1ffd9519c6]
Login

Artifact [1ffd9519c6]

Artifact 1ffd9519c6379ca3f9b19b0d51ff250657483b7b:

Ticket change [1ffd9519c6] - New ticket [218375ffffffffff|218375ffff] <i>Fileevent never executes in tclsh82 - works in wish82</i>. by nobody on 2000-10-26 00:56:50.
D 2000-10-26T00:56:50
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4314\sBug\nVersion:\s8.2.2\nSubmitDate:\s'2000-03-06'\nLastModified:\s'2000-03-10'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\sericm\nOS:\sWindows\s95\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-03-10'\n\n\nName:\nDavid\sGraczyk\n\nReproducibleScript:\nThe\sfollowing\sscript\sworks\sin\swish82\sbut\snot\sin\stclsh82.\n\ncatch\s{set\schannelID\s[open\sCOM2:\sr+]}\nif\s{[info\svars\schannelID]\s==\s""}\s{\nreturn\n}\n\nfconfigure\s$channelID\s-buffering\sline\s-mode\s9600,N,8,1\s-blocking\s0\n\n#\sCOM2\sis\sconnected\sto\sa\smodem.\n#\sI\scall\sthe\smoden\sline\sand\sobserve\n#\sthe\sRING\smessage\sfrom\sthe\smodem.\nfileevent\s$channelID\sreadable\s{\nputs\s[read\s$channelID]\n}\n\nObservedBehavior:\nThe\sfileevent\snever\sexecutes\sin\stclsh82.\n\nDesiredBehavior:\nI\swould\sexpect\stclsh\sto\swork\sas\swish\sdoes.\n\n\n\nOne\skey\sdifference\sbetween\swish\sand\stclsh\sis\sthat\swish\salways\sstarts\san\sevent\sloop,\swhile\stclsh\snormally\sdoes\snot.\s\sBecause\sfileevents\sdepend\son\san\sevent\sloop\sto\sfunction,\sthey\swill\snot\swork\scorrectly\sin\stclsh\sunless\syou\stakes\ssteps\sto\senable\sthe\sevent\sloop.\s\sUsually\sthis\sis\saccomplished\sthrough\sthe\suse\sof\sthe\s"vwait"\scommand.\s\sTry\sadding\n\nvwait\sforever\n\nto\sthe\send\sof\syour\sscript.\s\sThis\swill\senable\sthe\sevent\sloop,\sand\syour\sfileevents\sshould\sthen\sbe\sprocessed\sas\syou\sexpect.\s\sSee\sthe\smanual\spage\sfor\svwait\sfor\smore\sinformation.\n\n-\seric\n\n--\s03/10/2000\sericm\n\n
J foundin obsolete:\s8.2.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Fileevent\snever\sexecutes\sin\stclsh82\s-\sworks\sin\swish82
J type Bug
K 218375ffffffffffffffffffffffffffffffffff
U nobody
Z 53a367e79cb232fa70c615eac9e633f0