.
D 2007-11-06T17:15:50
J assignee vincentdarley
J cmimetype text/plain
J comment The\scode\sbelow\sruns\scorrectly\sin\sWindows,\sbut\snot\sin\sLinux.\s(I'm\susing\sActiveTcl\s8.4.7\sin\sboth\scases).\n\n%\sfile\smkdir\sd1/d2/d3\n%\sfile\sdelete\s-force\sd1/d2/d3/..\n\nIn\sWindows,\sit\sdeletes\sd2\sand\sleaves\sd1\sempty.\sHowever,\sin\sLinux\sI\sget\sthe\serror:\n\n'error\sdeleting\s"d1/d2/d3/..":\sno\ssuch\sfile\sor\sdirectory\n\nIn\sLinux,\sd3\sis\sdeleted,\sbut\snot\sd2.\n\nIn\sorder\sthat\sit\sworks\sI\smust\snormalize\sthe\sfile\sname:\n\n%\sfile\sdelete\s-force\s[file\snormalize\sd1/d2/d3/..]\n\nI\sthink\sthat\sit\smight\snot\sbe\scorrect\sthat\sthe\soperation\sis\spartially\sperformed\sand\sthen\sfails.\sI\salso\sfind\sthe\serror\smessage\snot\svery\sdescriptive\sof\sthe\sproblem.\n\nThe\ssame\sthing\shappens\swhen\susing\s[file\scopy]\swith\sdirectory\spaths\scontaining\s"..".\n\nI've\sasked\sabout\sthis\sat\scomp.lang.tcl,\sand\sDonald\sG\sPorter\ssuggested\sthat\sit\smay\sbe\sthe\ssame\sas\sBug\s961646.\n\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter mgma
J subsystem 37.\sFile\sSystem
J title delete\sand\scopy\sfail\sin\slinux\swhen\spath\scontains\s".."
J type Bug
K 1827008fffffffffffffffffffffffffffffffff
U mgma
Z 8b4b34b9b25d701e2e18735a70226dda