Skip to content
Tcl Source Code Artifact [44e55da4fb]
Login

Artifact [44e55da4fb]

Artifact 44e55da4fb8c7dd96a227ad43559d57185dd4d78:

Ticket change [44e55da4fb] - New ticket [218316ffffffffff|218316ffff] <i>switch statement does not support binary pattern matching</i>. by nobody on 2000-10-26 00:56:03.
D 2000-10-26T00:56:03
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3765\sBug\nVersion:\s8.0p2\nSubmitDate:\s'1999-12-03'\nLastModified:\s'1999-12-03'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sOther\nOSVersion:\sLynx\sOS\s3.0.0\s(4/6/98)\nMachine:\sION\sNetworks\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-12-03'\n\n\nName:\nRajesh\sRaghavan\n\nExtensions:\nION\sNetworks\s"NetworX"\sAPI\n\nCustomShell:\nnone\n\nReproducibleScript:\nset\stextPort\s[portOpen\sTELNET1%1]\nset\scdc\s[portOpen\sHOST1]\nset\scd9000\s[portOpen\sHOST2]\nset\ssyncString\s[binary\sformat\sH12\s010000002627]\nset\ssyncStringTail\s[binary\sformat\sH6\s002627]\nset\salarmPollTail\s[binary\sformat\sH8\s01000505]\nset\shead_zero\s[binary\sformat\sH6\s010000]\nset\shead_three\s[binary\sformat\sH6\s010300]\nwhile\s{$sync\s==\s"TRUE"\s}\s{\nset\scdcHead\s[multiRead\s$cdc\s3\s10\s$textPort]\nOutputLine\s$textPort\s"Scanning\scdcHead"\nbinary\sscan\s$cdcHead\sH6\sheadhex\nOutputLine\s$textPort\s"cdcHead\s=\s$headhex:\s\sMaking\sdecision"\nswitch\s-exact\s--\s$cdcHead\s{\n$head_zero\s{\nOutputLine\s$textPort\s"head_zero:\s\sreadTail\sCDC.\sLength\sunknown"\s\nset\scdcData\s[readTail\s$cdc\s$textPort]\nOutputLine\s$textPort\s"Processing\sCDC\sData"\n...\n}\n}\n$head_three\s{\nOutputLine\s$textPort\s"head_three:\s\sreadTail\sCDC"\s\nset\scdcData\s[readTail\s$cdc\s$textPort]\nOutputLine\s$textPort\s"head_three:\s\sreadAll\sCD9000"\nset\scd9K_Data\s[readAll\s$cd9000\s$textPort]\n}\ndefault\s{\nOutputLine\s$textPort\s"Lost\ssynchronization"\nset\ssync\sFALSE\n}\n}\n\nObservedBehavior:\nThe\sswitch\sstatement\salways\sgoes\sto\sthe\sdefault\scase,\seven\swhen\s$cdcHead\sis\sverified\sto\sbe\sthe\ssame\sas\s$head_zero\sor\s$head_three\n\nSyntax\sof\ssome\sextensions/procedures:\nmultiRead\s<port>\s<bytes\sto\sbe\sread>\s<timeout>\s<debug\sport>\n\nDesiredBehavior:\nContinued\sexecution\sof\sthe\sprogram,\sas\sopposed\sto\srepetition\sof\ssynchronization\sloop.\n\n\n\nThe\suser\sneeds\sto\supgrade\sto\s8.2+.\s\n--\s12/03/1999\shobbs
J foundin obsolete:\s8.0p2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title switch\sstatement\sdoes\snot\ssupport\sbinary\spattern\smatching
J type Bug
K 218316ffffffffffffffffffffffffffffffffff
U nobody
Z 629d802d78fdaa82e4f8ecfcb0b03ff6