<i>Remove unnecessary code in safe::AliasGlob - an old fix for ~ expansion that is now fixed by other means</i>.
by
.
D 2020-07-18T18:54:32.789
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment Command\s::safe::AliasGlob\sgives\sspecial\streatment\sto\ssearch\spatterns\swhose\sdirectory\spart\sis\s~\sor\s~${foo}.\s\sIn\searlier\sversions\sof\s::safe::AliasGlob,\sthis\swas\sa\sfix\sfor\sthe\sproblem\sof\sunwanted\sexpansion\sof\s~\sthat\srevealed\shome\sdirectories\sto\sa\ssafe\sinterpreter\s(bug\s[3529949]).\r\n\r\nThis\sspecial\streatment\sof\s~\sis\sno\slonger\snecessary.\s\sIn\scurrent\sTcl,\r\n<verbatim>\r\n\s\s\sfile\sjoin\s$anything\s~${foo}\r\n</verbatim>\r\nhas\sresult\s"~${foo}",\swhich\sdoes\snot\smatch\sany\sdirectory\sin\sthe\saccess\spath,\sand\sso\sis\srejected\sbefore\sbeing\spassed\sto\sthe\ssafe\sinterpreter's\shidden\sglob\scommand.\r\n\r\nFixed\sin\sbranch\ssafe-bugfixes-8-6\scommit\s[39485e00ef].\r\n\r\nTests\ssafe-16.[5-8]\shave\sbeen\sadded\sto\scheck\sthat\s[file\sjoin]\scontinues\sto\sbehave\sthis\sway.\s\sExisting\stests\ssafe-16.[1-4]\salso\scheck\sfor\sunwanted\s~\sexpansion.
J foundin core-8-6-branch
J is_private 0
J login kjnash
J priority 5\sMedium
J private_contact a774b1f5653dc3360e29ea7d635a64e94c9f1dab
J resolution None
J severity Minor
J status Open
J submitter kjnash
J subsystem 33.\sSafe\sBase
J title Remove\sunnecessary\scode\sin\ssafe::AliasGlob\s-\san\sold\sfix\sfor\s~\sexpansion\sthat\sis\snow\sfixed\sby\sother\smeans
J type Bug
K 9ae5c553cadbac0097021593a77ea959e6b1aa76
U kjnash
Z 5ec6304ead13ef09ace174b12ef4c6ca