.
D 2020-07-18T18:11:39.131
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment Command\s::safe::AliasGlob\sconstructs\sa\scommand\scmd\sto\sbe\spassed\sto\sthe\ssafe\sinterpreter's\shidden\sglob\scommand.\r\n\r\nCommand\s::safe::AliasGlob\sconspires\sto\srequire\sthat,\sin\sorder\sto\ssupply\sa\svalid\ssearch\spattern\sto\scmd,\sthe\scaller\smust\ssupply\sarguments\s-directory\svirtualdir,\sand\sthe\svalue\svirtualdir\smust\sbegin\swith\sa\svalid\stokenized\sdirectory.\r\n\r\nIt\sdoes\sthis\sby\r\n\s\s#\s\s\stesting\sthat\seach\sdirectory\s[file\sjoin\s$virtualdir\s$thedir]\s(where\sthedir\sis\sthe\sdirectory\spart\sof\sthe\ssearch\spattern)\sbelongs\sto\sthe\stokenized\saccess\spath\r\n\s\s#\s\s\sNOT\stranslating\sfrom\stokens\sthe\spattern\sarguments\ssupplied\sto\scmd.\s\sOnly\sthe\svirtualdir\sis\stranslated.\r\n\r\nE.g.\sif\s-directory\svirtualdir\sis\snot\ssupplied,\sand\sthe\ssearch\spattern\sis\s{$p(:4:)/*},\sthe\sdirectory\sis\s{$p(:4:)}\sand\spasses\sthe\s"access\spath"\stest.\s\sBut\sthe\spattern\spassed\sto\sglob\sas\scmd\sis\s{$p(:4:)/*}\sand\shas\sno\smatches\sagainst\sreal\sdirectories.\s\sThe\sglob\shas\sno\smatches.\r\n\r\nFor\sthe\ssake\sof\sclarity\sit\swould\sbe\suseful\sto\sprocess\sthe\scase\swithout\sarguments\s"-directory\svirtualdir"\snear\sthe\sstart\sof\sthe\scommand,\sso\sthe\scase\sanalysis\sin\sthe\srest\sof\sthe\scommand\sis\ssimplified.\r\n\r\nFixed\sin\sbranch\ssafe-bugfixes-8-6\scommit\s[dc38ed6dd6].
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 Simplify\scase\sanalysis\sin\ssafe::AliasGlob
J type RFE
K 016bea8571bfe22d30ce150e63c5bccdbfee2e5e
U kjnash
Z f3b22b2706e6f7d70548154fc0c0a5d5