Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: afd830068b98374cd5ff7dd79e9059372dec75b325f66baa52056039df739a50
Ticket: 122bd5d842561d7306e54f987f27e238d42655ce
Inappropriate use of glob -join by AliasGlob gives wrong results
User & Date: kjnash on 2020-07-15 17:24:30
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    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.
    
  5. foundin changed to: "core-8-6-branch"
  6. is_private changed to: "0"
  7. login: "kjnash"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "a774b1f5653dc3360e29ea7d635a64e94c9f1dab"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "kjnash"
  14. subsystem changed to: "33. Safe Base"
  15. title changed to: "Inappropriate use of -join by AliasGlob"
  16. type changed to: "Bug"