.
D 2000-10-26T01:02:44
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1327\sBug\nVersion:\s8.1b1\nSubmitDate:\s'1999-03-02'\nLastModified:\s'1999-04-01'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\swelch\nOS:\sWindows\sNT\nOSVersion:\s4.0sp3\nMachine:\sX86\nFixedDate:\s'1999-04-01'\nClosedDate:\s'2000-10-25'\n\n\nName:\nCharles\sW.\sHooks\n\nExtensions:\nnone\n\nCustomShell:\nnone\n\nReproducibleScript:\n\s\s\s\s\s\sThe\sfollow\scode,\ssupplied\sin\sa\sTcl\slibrary\sfile\scauses\spkg_mkindex\sto\n\s\s\s\sdie.\n\s\s\s\sThe\sfunction\sprovided\sin\sthe\snamespace\sfor\sthe\spackage\sis\simported\sinto\n\s\s\s\sthe\n\s\s\s\sglobal\sscope\sfor\seasy\suse.\s\sThe\sreason\sis\swas\snot\sdeclared\sin\sthe\sglobal\n\s\s\s\sscope\sis\sthat\sit\suses\smany\sfunctions\sin\sthat\snamespace\sas\swell\sas\n\s\s\s\svariables.\n\s\s\s\sIt\swould\sbe\snice\sif\spkg_mkindex\swould\shandle\sto\snamespace\simport\sline\n\s\s\s\swith\n\s\s\s\sout\saborting/erroring\sout.\s\sIf\sit\signored\sthe\sline,\sthings\swould\sbe\n\s\s\s\sfine.\n\s\s\s\sI\swould\sget\san\sindex\sfor\sall\sof\smy\scommands\sand\sI\swould\shave\sto\shand\n\s\s\s\sedit\n\s\s\s\sthe\snamespace\sfrom\sfoo\sand\sthings\swould\swork,\sthough\sit\spkg_mkindex\n\s\s\s\swould\n\s\s\s\sperform\sthis\sas\swell,\sthings\swould\sbe\sgreat!\n\s\s\s\s\n\s\s\s\s\s\sSave\scode\sin\sa\sfile\scalled\stest.tcl\n\s\s\s\s\n\s\s\s\spkg_mkIndex\s.\stest.tcl\n\s\s\s\s\n\s\s\s\sThis\swill\screate\san\sempty\spkgIndex.tcl\sfile,\seven\sif\syou\shave\sother\n\s\s\s\scommands\n\s\s\s\sentered\safter\sthe\sproblem\sline.\n\s\s\s\s\n\s\s\s\s#####broken\scode#####\n\s\s\s\s\n\s\s\s\spackage\sprovide\sfubar\s1.0\n\s\s\s\s\n\s\s\s\snamespace\seval\s::fubar::\s{\n\s\s\s\s\s\s\s\s#\n\s\s\s\s\s\s\s\s#\sexport\sonly\spublic\sfunctions.\n\s\s\s\s\s\s\s\s#\n\s\s\s\s\s\s\s\snamespace\sexport\s{[a-z]*}\n\s\s\s\s}\n\s\s\s\s\n\s\s\s\sproc\s::fubar::foo\s{bar}\s{\n\s\s\s\s\s\s\s\sputs\s"$bar"\n\s\s\s\s\s\s\s\sreturn\strue\n\s\s\s\s}\n\s\s\s\s\n\s\s\s\snamespace\simport\s::fubar::foo\n\s\s\s\s\n\n\n\nObservedBehavior:\n\s\s\s\sempty\spkgIndex.tcl\sfile.\n\s\s\s\s\n\n\n\nDesiredBehavior:\n\s\s\s\spackage\sindexes\sfor\sthe\sfunctions\sin\sthe\sfile.\s\sIn\sthe\scase\sof\sthe\n\s\s\s\snamespace\n\s\s\s\simported\scommand,\swe\sshould\ssee\sthat\scommand\sindexed\sin\sthe\sglobal\sscope\n\s\s\s\sas\n\s\s\s\swell\sas\steh\snamespace\sscope.\n\s\s\s\s\n\n\n\n\nI\ssimply\sadded\s"-force"\sto\sthe\simport\sdone\sby\spkg_mkIndex\sso\sit\ndoesn't\scare\sif\sthe\sscript\sthat\swas\ssourced\salready\sdid\san\simport.
J foundin obsolete:\s8.1b1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Error\swith\spkg_mkindex
J type Bug
K 218583ffffffffffffffffffffffffffffffffff
U nobody
Z a1c98854d17687d8377c9b49689f32cc