Skip to content
Tcl Source Code History Of Ticket 122bd5d842
Login

History Of Ticket 122bd5d842

Artifacts Associated With Ticket 122bd5d842

  1. Ticket change [afd830068b] (rid 184754) by kjnash on 2020-07-15 17:24:30:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized 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 initialized to: "core-8-6-branch"
    6. is_private initialized to: "0"
    7. login: "kjnash"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "a774b1f5653dc3360e29ea7d635a64e94c9f1dab"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "kjnash"
    14. subsystem initialized to: "33. Safe Base"
    15. title initialized to: "Inappropriate use of -join by AliasGlob"
    16. type initialized to: "Bug"
  2. Ticket change [75a6f4baa8] (rid 184776) by kjnash on 2020-07-16 01:16:50:

    1. 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.
      
    2. login: "kjnash"
    3. mimetype: "text/plain"
  3. Ticket change [2e5cc983bf] (rid 184785) by kjnash on 2020-07-16 02:05:04:

    1. login: "kjnash"
    2. mimetype: "text/plain"
    3. title changed to:
      Inappropriate use of glob -join by AliasGlob gives wrong results
      
  4. Ticket change [2713c935e3] (rid 190594) by kjnash on 2020-12-31 16:04:05:

    1. closedate changed to: "2459215.16950948"
    2. closer changed to: "kjnash"
    3. login: "kjnash"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"