Skip to content
Tcl Source Code Artifact [1f5e42fdcd]
Login

Artifact [1f5e42fdcd]

Artifact 1f5e42fdcd51696de89e769f72fd452fc720a3ae:

Ticket change [1f5e42fdcd] - New ticket [1074671fffffffff|1074671fff] <i>handling of ~ in variables used as file names</i>. by ralfixx on 2004-11-28 15:14:09.
D 2004-11-28T15:14:09
J assignee dkf
J cmimetype text/plain
J comment Preparation:\screate\sa\sfile\sstarting\swith\stilde\n$\stouch\s./~foo\n\n$\stclsh8.4\n%\sinfo\spatchlevel\n8.4.6\n\nSetting\sand\susing\sa\sregular\sstring\svariable\swith\sthat\nfile\sname\sfails:\n%\sset\sfile\s~foo\n~foo\n%\sfile\stail\s$file\n\suser\s"foo"\sdoesn't\sexist\n\nUsing\sthe\sresult\sof\sglob\ssucceeds\sthough:\n%\sset\sfile2\s[lindex\s[glob\s*foo]\s0]\n~foo\n%\sfile\stail\s$file2\n./~foo\n\nThe\svariables\sfile\sand\sfile2\scompare\sequal,\sbut\sfile\ntail\sgives\sdifferent\sresults:\n%\sstring\sequal\s$file\s$file2\n1\n%\sfile\stail\s$file2\n./~foo\n%\sfile\stail\s$file\nuser\s"foo"\sdoesn't\sexist\n\nWhen\sthe\sglob-variable\sis\smanipulated\sin\sany\sway,\sthe\nfile\scommand\sfails,\stoo:\n%\sappend\sfile2\s{}\n~foo\n%\sfile\stail\s$file2\nuser\s"foo"\sdoesn't\sexist\n\nI\swould\shave\sexpected\sto\sget\sconsistent\sresults\sin\sall\ncases,\sregardless\sof\swhether\sthe\svariable\swas\sthe\nresult\sof\sa\sglob\sor\snot.\n\nR'
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter ralfixx
J subsystem 16.\sCommands\sA-H
J title handling\sof\s~\sin\svariables\sused\sas\sfile\snames
J type Bug
K 1074671fffffffffffffffffffffffffffffffff
U ralfixx
Z cdba813870f9595d407604fd9e242d3f