<i>win vista/7: "can't find init.tcl" when called via junction</i>.
by
.
D 2012-11-14T10:46:51
J assignee dgp
J cmimetype text/plain
J comment Platform:\swin\svista/win\s7\nTcl\sVersions:\s8.5.13,\s8.6.0rc0\n\nThe\sfollowing\serror\smessage\sarises,\sif\swish86.exe\sis\scalled\swith\sa\spath\scomponent\swith\sa\sdirectory\sjunction\swith\sno\s"Directory\slist"\sright\nThis\sis\sthe\scase\sfor\sGerman\sWindows\sVista\swhen\swish.exe\sis\sin\sthe\sfolder\sc:\\programme\s(which\sis\sa\sjuction\sto\s"c:\\program\sfiles").\n\n"Can't\sfind\sa\susable\sinit.tcl\sin\sthe\sfollowing\sdirectories:\nC:/programme/tcl8.6/lib/tcl8.6\sC:/programme/tcl8.6/lib/tcl8.6\nC:/programme/lib/tcl8.6\sC:/programme/tcl8.6/library\nC:/programme/library\sC:/programme/tcl8.6.0/library\sC:/tcl8.6.0/library"\n\n--------------------------------------------------------------------------------\nUnfortunately,\sI\sam\snot\sable\sany\smore\sto\stest\sthis,\sas\sI\sapplied\sthe\shotfix\swhich\schanges\sthat:\nhttp://support.microsoft.com/kb/969986\nI\shave\snot\sfound\sany\sway\sto\srewind\sthat.\n-------------------------------------------------------------------------------\nThe\sfollowing\stest\sdoes\snot\sshow\sthis\serror,\sbut\sa\ssimilar\sone.\sThe\sshown\serror\smessage\scomplains\sabout\sa\snot\sfound\stk.tcl.\nDo\sthe\sfollowing\ssteps\s(translated\sfrom\sgerman\sdialogs):\n-\syou\shave\sa\stcl\sinstallation\sin\sa\spath,\ssay\sc:\\test\\tcl860rc0\n-\sopen\san\sadministrator\sdos\sbox\n-\senter\sthere:\n\s\scd\sc:\\test\n\s\smklink\s/j\stcl860rc0_junction\stcl860rc0\n-\suse\sthe\swindows\sexplorer,\sopen\sthe\sproperties\sof\sthe\sjunctions,\stab\ssecurity:\n-\sPress\sthe\scontinue\sbutton\sto\sopen\sthe\s"Rights\sfor\stcl860rc0_junction\stcl860rc0"\sdialog\sbox\n-\sSelect\s"Users"\sin\sthe\slistbox\s"Graup\sand\sUser\snames"\n-\sSelect\sthe\s"Deny"\scheckbox\sfor\s"Show\sfolder\scontents"\n\s\sThe\sattached\simage\sshows\sthe\sgerman\sversion\sof\sthe\sdialog\n-\sPress\s"Apply"\n-\sCeate\sa\sbatch\sfile\swith\sthe\sfollowing\scontents:\nc:\\test\\tcl860rc0_junction\\bin\\wish86.exe\n<EOF>\nAdjust\sthe\sname\sof\sthe\swish\sexecutable,\sif\syour\sname\sis\sdifferent.\n-\sexecute\sthe\sbatch\sfile.\nIt\sappears\sa\smessage\sbox\swith\sthe\sfollowing\stext:\n\n"Can't\sfind\sa\susable\stk.tcl\sin\sthe\sfollowing\sdirectories:\nC:/test/tcl8.6.0/library/tk8.6\sC:/test/tcl8.6.0/tcl8.6\nC:/test/tcl860rc0_junction/lib/tk8.6\sc:/test/lib/tk8.6\nc:/test/tcl860rc0_junction/library"\n\n------------------------------------------------------------------------\nIMHO,\sone\sshould\sintroduce\sa\s"[file\snormalize\s]"\saround\sthe\sgeneration\nof\sthe\sparentDir\svariable\sin\sLine\s370\sof\stclInterp.c:\n\nThe\scurrent\scode\sis:\nset\sparentDir\s[file\sdirname\s[file\sdirname\s[info\snameofexecutable]]]\nto\savoid\sthis\sissue,\sone\smay\suse:\nset\sparentDir\s[file\snormalize\s[file\sdirname\s[file\sdirname\s[info\snameofexecutable]]]]\nAt\sleast,\sthis\shelps\sin\smy\sscripts\sto\sget\srid\sof\sdirectory\sjunctions\srelated\sissues.\n\nA\ssample\ssession\swith\sthe\s"c:\\Programme"\sjunction:\nC:\\test>c:\\Programme\\tcl8.6\\bin\\tclsh86t.exe\n%\sinfo\snameofexecutable\nc:/Programme/tcl8.6/bin/tclsh86t.exe\n%\sfile\snormalize\s[info\snameofexecutable]\nC:/Program\sFiles/tcl8.6/bin/tclsh86t.exe\n\n---------------------------------------------------------------------\nUnfortunately,\sin\sthe\supper\stest\scase,\sit\sfails.\nExample\ssession:\s(the\supper\sexample,\sbut\swith\stclsh86t.exe\sin\sthe\sbatch\sfile:\nc:\\test\\tcl860rc0_junction\\bin\\tclsh86t.exe\n\nC:\\test>c:\\test\\tcl860rc0_junction\\bin\\tclsh86t.exe\n%\sinfo\snameofexecutable\nc:/test/tcl860rc0_junction/bin/tclsh86t.exe\n%\sfile\snormalize\s[info\snameofexecutable]\nC:/test/tcl860rc0_junction//tclsh86t.exe\n\nRemark\sthe\sdouble\s"//"\s-\sthe\spath\scomponent\s"bin"\sdisapeared.\n---------------------------------------------------------------------\nRelated\score\slist\sthread:\shttp://code.activestate.com/lists/tcl-core/12335/
J foundin current:\s8.6.0
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter oehhar
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title win\svista/7:\s"can't\sfind\sinit.tcl"\swhen\scalled\svia\sjunction
J type Bug
K 3587096fffffffffffffffffffffffffffffffff
U oehhar
Z cb1c83913319aeecd29fe575a81ab50e