|
2020-12-31
| ||
| 16:04 | • Closed ticket [122bd5d842]: Inappropriate use of glob -join by AliasGlob gives w... artifact: 2713c935e3 user: kjnash | |
|
2020-07-16
| ||
| 02:05 | • Ticket [122bd5d842]: 3 changes artifact: 2e5cc983bf user: kjnash | |
| 01:16 | • Ticket [122bd5d842]: 3 changes artifact: 75a6f4baa8 user: kjnash | |
|
2020-07-15
| ||
| 17:24 | • New ticket [122bd5d842]. artifact: afd830068b user: kjnash | |
Inappropriate use of glob -join by AliasGlob gives wrong results
Closed / Fixed122bd5d842561d7306e54f987f27e238d42655ceCreated 6 years agoUpdated 6 years ago
Descriptionplain2020-07-15 17:24:30
If AliasGlob is called with argument "-join", it will join the pattern arguments before passing them to the slave's hidden "glob" command; but if the result is "*/pkgIndex.tcl", there is an intermediate step in which AliasGlob expands "*/pkgIndex.tcl" by calling "glob" in the master interpreter, before passing the result to the slave. The bug is that AliasGlob passes the "-join" option to the slave's "glob", which joins the pathnames that it is passed: if there is more than one such pathname, the result is a nonsense pattern and therefore "no match". There is never any reason to pass the argument "-join" to the slave's "glob" - the join is always done in the master interpreter. Fixed in branch safe-bugfixes-8-6 commit [1de9e63266]. Also a new test safe-13.7a that AliasGlob interprets the pkgIndex.tcl search correctly.
kjnash Ticket [122bd5d842]: 3 changes
[History diff]2020-07-16 01:16:50
kjnash Ticket [122bd5d842]: 3 changes
[History diff]2020-07-16 02:05:04
kjnash Closed ticket [122bd5d842].
[History diff]2020-12-31 16:04:05
Log in (anonymous is fine) to add a comment.