.
D 2009-01-15T19:31:03
J assignee dkf
J cmimetype text/plain
J comment glob\sdoesn't\sescape\sfilenames\sstarting\swith\s~.\sThis\smeans\sglob\sby\sdefault\scan\sreturn\sfilenames\sthat\s1)\sdon't\sexists\s(annoying)\sor\seven\spoint\sto\sa\sdifferent\sspot\sall\stogether\s(a\suser\sdirectory\sfor\sinstance,\swhich\sis\soutright\sdangerous).\s\n\nFor\sexample:\ncreate\sa\sfile\sname\s"~test"\n\n%\sforeach\sfile\s[glob\s*]\s{\sif\s{![file\sexists\s$file]}\s{puts\s"huh\s$file\sdoesn't\sexists"}}\nhuh\s~test\sdoesn't\sexists\n%\sinfo\spa\n8.5.4\n\nInteractive\ssession\sabove\swas\swith\sTcl\s8.5.4.\nDangerous\ssituations\scan\soccur\sif\sa\sfilename\smatches\sa\svalid\suser\sdirectory\s(~\sfor\sinstance)\sand\sresults\sof\sglob\sare\sused\sin\srecursive\sdelete\soperations\s(which\swould\slead\sto\sremoval\sof\sthe\susers\shome\sdir\sin\sthis\scase)\n\nIt\sseems\sthat\sme\sthat\sglob\sshould\sproperly\sescape\s~\sas\s"./~test".\n\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter mpc_janssen
J subsystem 16.\sCommands\sA-H
J title [glob]\scan\sreturn\snon-existing\sfilenames
J type RFE
K 2511011fffffffffffffffffffffffffffffffff
U mpc_janssen
Z 620aa0ac1da768e2871857cba331f201