.
D 2000-10-26T00:55:04
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2860\sBug\nVersion:\s8.1\nSubmitDate:\s'1999-09-21'\nLastModified:\s'1999-09-28'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sSolaris\nOSVersion:\s2.6.1\nMachine:\sOther\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-09-28'\n\n\nName:\nWilliam\sYan\n\nComments:\nTo\skeep\scomment\ssystax\sconsistent,\srequire\suser\sput\scurly\sbraces\s"{...}"\n\s\s\s\saround\sthe\spattern\sor\sadd\sbackslash\s"\\"\sright\sbefore\shashmark\s"#"\sif\n\s\s\s\she/she\sdo\swant\sto\streat\sthe\shashmark\s"#"\sas\sa\spattern.\n\nReproducibleScript:\n#!/bin/sh\n\s\s\s\s#Start\sTclsh\s\sexec\stclsh\s$0\s$@\n\s\s\s\s\n\s\s\s\sswitch\s-regexp\s[lindex\s$argv\s0]\s{\n\s\s\s\s\s\s\s#\sbranch1:\sget\sinput\sstring\s"a"\n\s\s\s\s\s\s\sa\s{puts\s"input\sis\sa"}\n\s\s\s\s\s\s\sb\s{puts\s"input\sis\sb"}\n\s\s\s\s\s\s\sdefault\s{puts\s"input\sis\sneither\sa\snor\sb"}\n\s\s\s\s}\n\s\s\s\s\n\s\s\s\sThe\sabove\sis\sthe\scontent\sof\sexecutable\sscript\sfile.\sJust\srun\sit\sin\sUnix\n\s\s\s\sshell.\n\nObservedBehavior:\nThe\sinterprete\slook\sthe\sfirst\sline\sin\sswitch\sbody\n\s\s\s\s\s\s\s\s#\sbranch1:\sget\sinput\sstring\s"a"\n\s\s\s\sas\sa\sreal\sbranch\salthough\sas\smy\sintent\sit\swas\scomment.\sAnd\sthe\n\s\s\s\sinterprete\sthen\sreports\serror.\n\nDesiredBehavior:\nAdd\scomments\sin\sswitch\sbody.\n\n\n\nThis\ssort\sof\scomment\splacement\sis\suser\serror,\sas\sspecifically\nstated\sin\sthe\sswitch\sman\spage.\s\sThe\sman\spage\shas\sbeen\sfurther\nupdated\sfor\s8.3b1\sto\sinclude\san\sexample\sof\sproper\scomment\nplacement.\s\n--\s09/28/1999\shobbs
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title comment\ssign\s(#)\sin\sswitch\sbody
J type Bug
K 218253ffffffffffffffffffffffffffffffffff
U nobody
Z 4ddd36ec6768aa2ced8e810695892a58