<i>Possible parsing problem. "list" command inccorectly assigns</i>.
by
.
D 2004-10-14T15:06:02
J assignee dkf
J cmimetype text/plain
J comment Synopsis\sof\sthe\sbug:\n\n\s\sPossible\sissue\swith\sthe\sway\stcl\sparses\slist\scommands.\n\n\s\s1.\sIf\sthe\slist\sbeing\spassed\sto\sone\sof\sthe\slist\scommands\s\nis\sfollowed\sby\sany\snonspace\s"terminator"\scharacter\s\n(such\sas\s"[",\s",",\s".",\s"{",\s"}",\s")",\s"\\"\sand\setc.\s)\sand\sthen\s\nby\sany\snumber\sof\snonspace\scharacters\sthen\sspace\s,\sall\s\nthose\scharacters\sare\sbeing\sappended\sto\sthe\svery\slast\s\nelement\sof\sthe\slist\swhile\sexecuting\sthe\scommand.\n\nExample:\n----------\ninput:\sjoin\s[list\s1\s2\s3]\\[\s|\noutput:\s1|2|3[\n\ninput:\sjoin\s[list\s1\s2\s3]]\s|\noutput:\s1|2|3]\n\n\s\s2.\sIf\sthe\slist\sbeing\spassed\sto\sone\sof\sthe\slist\scommands\s\nis\sfollowed\sby\sany\snonspace\s"terminator"\scharacter\s\n(such\sas\s"[",\s",",\s".",\s"{",\s"}",\s")",\s"\\"\sand\setc.\s)\sand\sthen\s\nby\sany\snumber\sof\snonspace\scharacters,\sthen\sby\s"\\",\s\nthen\sby\sa\sspace\scharacter,\sand\sthen\sagain\sany\snumber\s\nof\snonspace\scharacters,\sall\sthose\scharacters\sbefore\s"\\\s"\s\nare\sbeing\sappended\sto\sthe\svery\slast\selement\sof\sthe\s\npassed\slist\sand\sall\scharacters\sthat\sgoes\safter\s"\\\s"\sare\s\ntreated\sas\san\sadditional\slast\selement\sof\sthe\slist\swhile\s\nexecuting\sthe\scommand.\n\nExample:\n----------\ninput:\sjoin\s$l\\extra1\\\sextra2\s|\noutput:\s1|2|3extra1|extra2\n\nSetup\sinformation:\n\s\sOS:\s\sWindows\s2000\sProfessional,\n\s\sTCL:\sTcl\sversion\s8.3\n\nSteps\sto\sreproduce\sthe\sbug:\n\s\s1.\sBring\sup\stclsh\scommand\sprompt\n\n\s\s2.\sInitialize\sthe\slist\sas\sbelow...\n\s\s\s\s\s\sinput:\sset\sl\s[list\s1\s2\s3]\n\s\s\s\s\s\soutput:\s1\s2\s3\n\n\s\s3.\sTry\sone\sof\sthe\soperation\sbelow\s(join\sis\sused\sonly\sas\s\nan\sexample\sany\sother\slist\soperation\swill\smanifest\sthe\s\nsame\sissue)\n\ninput:\sjoin\s$l]\s|\noutput:\s1|2|3]\n\ninput:\sjoin\s$l{\s|\noutput:\s1|2|3{\n\ninput:\sjoin\s$l}\s|\noutput:\s1|2|3}\n\ninput:\sjoin\s$l)\s|\noutput:\s1|2|3)\n\ninput:\sjoin\s$l.\s|\noutput:\s1|2|3.\n\ninput:\sjoin\s$l,\s|\noutput:\s1|2|3,\n\ninput:\sjoin\s$l\\asdf\s|\noutput:\s1|2|3sdf\n\ninput:\sjoin\s$l\\(\s|\noutput:\s1|2|3(\n\ninput:\sjoin\s$l\\[\s|\noutput:\s1|2|3[\n\ninput:\sjoin\s$l\\]\s|\noutput:\s1|2|3]\n\ninput:\sjoin\s$l\\\\\s|\noutput:\s1|2|3\\\n\ninput:\sjoin\s[list\s1\s2\s3]\\[\s|\noutput:\s1|2|3[\n\ninput:\sjoin\s$l\\extra1\\\sextra2\s|\noutput:\s1|2|3extra1|extra2\n\nExpected\sresult:\sParsing\serror.
J foundin final\s----
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 17.\sCommands\sI-L
J title Possible\sparsing\sproblem.\s"list"\scommand\sinccorectly\sassigns
J type Bug
K 1047097fffffffffffffffffffffffffffffffff
U nobody
Z ba0ef73dae5bf636e8f7dcf95248a819