.
D 2000-10-26T01:02:19
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1126\sBug\nVersion:\s8.0.4\nSubmitDate:\s'1999-01-29'\nLastModified:\s'1999-02-03'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\swelch\nChangedBy:\sstanton\nOS:\sSolaris\nOSVersion:\sSunOS\smuffin\s5.6\sGeneric\ssun4m\ssparc\sSUNW,SPARCstation-20\nMachine:\sOther\nFixedDate:\s'1999-02-03'\nFixedInVersion:\s8.0.5\nClosedDate:\s'2000-10-25'\n\n\nName:\n\nDon\sLibes\n\n\nCVS:\n\nRCS:\s@(#)\s$Id:\stclFileName.c,v\s1.3\s1998/09/14\s18:39:59\sstanton\sExp\s$\n\n\nExtensions:\n\nTcl\s8.0.4\n\n\nReproducibleScript:\n\nEnter\sthe\sfollowing\sto\sthe\sTcl\sinterpreter:\n\n\s\s\sfile\sextension\sa..b\n\n\nObservedBehavior:\n\n[file\sextension\sa..b]\n\n\s\sreturns\s"..b"\n\n\nDesiredBehavior:\n\n[file\sextension\sa..b]\n\n\s\sshould\sreturn\s".b"\n\n\nNot\sonly\sis\sthis\smore\sintuitive,\sbut\sthe\sman\spage\ssays\sthat's\show\sit\sshould\swork.\n\n\nOddly,\sTcl\scontains\scode\sspecifically\sfor\sthis\sbehavior:\n\n\s\s\s\s\s/*\n\n\s\s\s\s\s\s*\sBack\sup\sto\sthe\sfirst\speriod\sin\sa\sseries\sof\scontiguous\sdots.\n\n\s\s\s\s\s\s*\sThis\sis\sneeded\sso\sfoo..o\swill\sbe\ssplit\son\sthe\sfirst\sdot.\n\n\s\s\s\s\s\s*/\n\n\sWhy\son\searth\swould\sanyone\swant\sthis\sbehavior?\s\sThe\scomment\sisn't\n\nvery\sclear\s-\sto\srestate,\sit\smeans\sthat\sthe\sextension\sof\sfoo..o\sis\n\n"..o".\s\sThis\sis\sinconsistent.\s\sIt\smeans\sthat\s"foo..o"\sand\s"foo.x.o"\n\nare\sfiles\swith\sdifferent\sextensions.\n\n\nPatch:\n\n***\stclFileName.c~Mon\sSep\s14\s14:39:59\s1998\n\n---\stclFileName.cTue\sJan\s26\s14:27:32\s1999\n\n***************\n\n***\s1029,1045\s****\n\n\s\s\s\s\s\s&&\s(lastSep\s>\sp))\s{\n\n\s\sp\s=\sNULL;\n\n\s\s\s\s\s\s}\n\n-\s\n\n-\s\s\s\s\s/*\n\n-\s\s\s\s\s\s*\sBack\sup\sto\sthe\sfirst\speriod\sin\sa\sseries\sof\scontiguous\sdots.\n\n-\s\s\s\s\s\s*\sThis\sis\sneeded\sso\sfoo..o\swill\sbe\ssplit\son\sthe\sfirst\sdot.\n\n-\s\s\s\s\s\s*/\n\n-\s\n\n-\s\s\s\s\sif\s(p\s!=\sNULL)\s{\n\n-\swhile\s((p\s>\sname)\s&&\s*(p-1)\s==\s'.')\s{\n\n-\s\s\s\s\sp--;\n\n-\s}\n\n-\s\s\s\s\s}\n\n\s\s\s\s\s\sreturn\sp;\n\n\s\s}\n\n\s\s\n\n---\s1029,1034\s----\n\n\nPatchFiles:\n\ntclFileName.c\n\n\n\n\n
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title file\sextension\sbug
J type Bug
K 218562ffffffffffffffffffffffffffffffffff
U nobody
Z 9a4cca98ccbd2aedd3eb629f35351b46