Skip to content
Tcl Source Code Artifact [36b8a94f3d]
Login

Artifact [36b8a94f3d]

Artifact 36b8a94f3dde5a10dd9e4bbe6984558917c4bedb:

Ticket change [36b8a94f3d] - Ticket [2511011fffffffff|2511011fff] <i>[glob] can return non-existing filenames</i> status still Open with 4 other changes by cwjolly on 2009-02-24 06:00:39.
D 2009-02-24T06:00:39
J icomment Seems\sto\sme\ssince\syou\sdo\screate\sthe\sfile\sand\sglob\sfinds\sit\sthat\sit\sis\snot\sa\sbug\swith\sglob\sbut\srather\swith\sfile\sexists.\sIts\sthe\s"file\sexists"\scommand\sthat\sdoes\snot\ssee\sthe\sfile.\sSince\stcl\ssupports\s~\sexpansion\sit\sis\slikely\sthat\sthe\shome\sdirectory\sis\sbeing\sappended\sto\sthe\sremainder\sof\sthe\sfilename\sand\ssois\snot\sfound.\se.g.\sif\sthe\shome\sdirectory\s==\s/home/chuck\sthen\s~test\sis\stransformed\sto\s/home/chucktest\sprior\sto\schecking\sfor\sexistance.\sI\stried\sthe\sfollowing\susing\s8.5.0\sand\sit\spoints\sto\sthe\s~\sexpansion\sas\sthe\sculprit\sfor\sa\snumber\sof\spath\sassociated\scommands.\sAt\sthe\sbottom\sit\swould\sappear\sthat\sas\ssuggested\sabove\sthat\sappending\s./\sto\seach\sfile\swill\sallow\sfile\sexists\s(and\sother\scommands\sto\ssucceed)\s:\s\n%\sinfo\spa\n8.5.0\n%\spackage\srequire\sfileutil\n1.13.5\n%\sfileutil::touch\s~test\nuser\s"test"\sdoesn't\sexist\n%\sfileutil::touch\s\\~test\nuser\s"test"\sdoesn't\sexist\n%\sexec\stouch\s~test\n%\sglob\s~*\nuser\s"*"\sdoesn't\sexist\n%\sglob\s*test\n~test\smytest\n%\sfile\sexists\s~test\n0\n%\sfile\snormalize\s~test\nuser\s"test"\sdoesn't\sexist\n%\sfile\snormalize\s\\~test\nuser\s"test"\sdoesn't\sexist\n%\sfile\sexists\s[file\snormalize\s~test]\nuser\s"test"\sdoesn't\sexist\n%\sfile\sexists\s[file\snormalize\s./~test\s]\n1\n\n\n
J login cwjolly
J mimetype text/plain
J username cwjolly
K 2511011fffffffffffffffffffffffffffffffff
U cwjolly
Z a825a9e63a252faa39b02ab6125f5619