Skip to content
Tcl Source Code Artifact [d66c4f79ac]
Login

Artifact [d66c4f79ac]

Artifact d66c4f79ac8fdb3d2ecc2dc78d6d054c796cc10f:

Ticket change [d66c4f79ac] - New ticket [219281ffffffffff|219281ffff] <i>Don&#39;t silently ignore $env(TCL_LIBRARY)</i>. by nobody on 2000-10-26 05:09:52.
D 2000-10-26T05:09:52
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1908\sRFE\nVersion:\s8.1b3\nSubmitDate:\s'1999-04-20'\nLastModified:\s'2000-10-25'\nSeverity:\sMED\nStatus:\sUnAssn\nSubmitter:\spat\nOS:\sOther\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\nDon\sPorter\n\nCVS:\n$Id:\stclInitScript.h,v\s1.9\s1999/04/16\s00:46:47\sstanton\sExp\s$$Id:\sauto.tcl,v\s1.2\s1999/04/16\s00:46:56\sstanton\sExp\s$\n\nComments:\nThe\serror\smessage\smight\salso\snotify\ssome\susers\sthat\sthey\shave\n\s\s\s\sTCL_LIBRARY\sset\sunknowingly.\s\sThis\smight\sbe\shelpful\sin\stracking\n\s\s\s\sdown\serrors\sthat\soccur\swhen\supgrading\sto\sa\snew\sTcl/Tk\sversion.\n\nDesiredBehavior:\nWhen\sI\sset\sthe\senvironment\svariable\sTCL_LIBRARY,\sI\sexpect\n\s\s\s\sthe\sTcl\slibrary\sto\sinitialize\susing\sthe\sscripts\sindicated\n\s\s\s\sby\sits\svalue.\s\sHowever,\sif\san\serror\soccurs\sduring\sevaluation\n\s\s\s\sof\sthe\sscript\s$TCL_LIBRARY/init.tcl,\sthe\sTcl\slibrary\ssilently\n\s\s\s\signores\sit\sand\sproceeds\sto\sinitialize\susing\sanother\sinit.tcl\n\s\s\s\sin\sits\ssearch\spath,\snever\sreporting\sthe\serror.\s\sErrors\sare\n\s\s\s\sreported\sonly\sif\sno\susable\sinit.tcl\scan\sbe\sfound.\n\n\s\s\s\sThis\smakes\sit\sdifficult\sto\stest\san\salternative\sset\sof\n\s\s\s\sinitialization\sscripts.\s\sThe\suser\sis\sled\sto\sbelieve\sthe\n\s\s\s\salternative\sscripts\sare\sworking\swhen\sthey\sare\snot.\s\sThe\suser\n\s\s\s\shas\sto\sknow\sto\scheck\sthat\s[info\slibrary]\sand\s$env(TCL_LIBRARY)\n\s\s\s\sare\sthe\ssame\sto\sverify\sthat\sthe\salternative\sscripts\sare\sin\suse.\n\s\s\s\sIf\sthey\sare\snot\sin\suse,\sthere\swas\ssome\serror,\sbut\sthe\serror\n\s\s\s\smessage\sand\sstack\strace\sare\slost\sso\sdebugging\sis\scomplicated.\n\nPatch:\nIndex:\sgeneric/tclInitScript.h\n===================================================================\nRCS\sfile:\s/cvsroot/tcl/generic/tclInitScript.h,v\nretrieving\srevision\s1.9\ndiff\s-r1.9\stclInitScript.h\n33c33,37\n<\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sreturn\\n\s---\n>\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s{[string\slength\s$errors]}\s{\\n\s>\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\serror\s\\"Failed\s'init.tcl'\sevaluation(s):\\n\\n$errors\\"\\n\s>\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\selse\s{\\n\s>\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sreturn\\n\s>\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\\n\sIndex:\slibrary/auto.tcl\n===================================================================\nRCS\sfile:\s/cvsroot/tcl/library/auto.tcl,v\nretrieving\srevision\s1.2\ndiff\s-r1.2\sauto.tcl\n109c109,113\n<\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sreturn\n---\n>\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s{[string\slength\s$errors]}\s{\n>\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\serror\s"Failed\s'$initScript'\sevaluation(s):\\n\\n$errors"\n>\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\selse\s{\n>\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sreturn\n>\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n\nPatchFiles:\ntclInitScript.h\n\s\s\s\sauto.tcl\n\n\n\n
J foundin obsolete:\s8.1b3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Don't\ssilently\signore\s$env(TCL_LIBRARY)
J type Bug
K 219281ffffffffffffffffffffffffffffffffff
U nobody
Z 31db24aafa1eae6b7868b5ff4a22a64b