Skip to content
Tcl Source Code Artifact [07003b0052]
Login

Artifact [07003b0052]

Artifact 07003b0052c4232a6d3df12ef293a4f0257adb4a:

Ticket change [07003b0052] - Ticket [c8d1585aa9ad5491|c8d1585aa9] <i>strange variable of variable evaluation in filesystem path (Windows only)</i> status still Closed with 5 other changes by anonymous on 2013-07-29 13:00:55.
D 2013-07-29T13:00:55.794
J closedate 2456503.04231243
J closer anonymous
J icomment @jan.nijtmans:\sNo\sneed\sto\ssorry,\sobviously\sI\smissed\ssomething\shere.\r\n\r\n>>\ssource\s"$b/../b.tcl"\s;#this\sone\sworks\son\sWindows,\sbut\sdoesn't\son\sLinux\r\n>\sThat\sthis\s\sworks\son\sWindows\sis\sactually\sa\sWindows\sbug,\sit\sshouldn't\swork\sat\sall!\r\n\r\nI\ssuppose\sthat\son\sWindows\ssuch\spath\s"dir/.."\sis\sequal\sto\s".",\sso\s"$b/../b.tcl"\smeans\s"./b.tcl",\swhich\sis\sOK\sin\sthis\scase.\r\n\r\n>\sSo,\syou\sare\smaking\stwo\smistakes:\s1)\sAssume\sthat\s"set\sb\s{$a}"\sreplaces\s$a\swith\sit's\scontent\r\n\r\nI\sassumed\sthat\s'source\s"$b/../b.tcl"'\sreplaces\s$b\sinto\sstring\s'$a',\sand\sthen,\ssomwhere\sinside\s'source',\s'$a'\sinto\svalue\sof\svariable\s$a.\sHowever,\sit\sseems\sthat\sin\scase\sof\s"dir/.."\sthe\s'dir'\sis\sjust\signored\s(Windows\sonly?\sseems\slike\skind\sof\soptimization)\sand\ssuch\spath\schanged\sinto\s".",\swhich\smakes\sit\sworking\son\sWindows.\r\n\r\nWell,\sfinally\sI\scan\sconcur\swith\sdgp\son\sthis\stoo.\sThanks!
J login anonymous
J mimetype text/plain
K c8d1585aa9ad549169b42c0fe36e5fbb7746db31
U anonymous
Z 8fde7def32035a828479a746462a35ef