Skip to content
Tcl Source Code History Of Ticket 3559678fffffffff
Login

History Of Ticket 3559678fffffffff

Artifacts Associated With Ticket 3559678fffffffff

  1. Ticket change [e885c4d11a] (rid 104659) by phao1989 on 2012-08-20 01:40:58:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Command/subcommand file normalize won't normalize some elements of glob's path list.
      
      The expected behavior is to have that trailing '/' character removed, and it is not being removed.
      
      Here is some small code (output commented in the end): [http://pastie.org/4552920].
      
      However, if I ask for the string length of the list element, then it works: [http://pastie.org/4552993].
      
      That a simple test case provided by kbk in IRC (#tcl, irc.freenode.com).
      
      [22:38] <ijchain> <kbk> % file normalize [lindex [glob -dir [pwd] {{}}] 0]
      [22:38] <ijchain> <kbk> /home/kennykb/fred/
      [22:38] <ijchain> <kbk> % file normalize [join [glob -dir [pwd] {{}}] ""]
      [22:38] <ijchain> <kbk> /home/kennykb/fred
      
      I am on Windows 7, TCL Version is 8.6b2.
      
    4. foundin initialized to: "obsolete: 8.6b2"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "phao1989"
    10. subsystem initialized to: "36. Pathname Management"
    11. title initialized to: "cmd/sub file normalize won't do in glob's result"
    12. type initialized to: "Bug"
  2. Ticket change [7f343f636a] (rid 97532) by kennykb on 2012-08-20 08:49:10:

    1. assignee changed to: "dgp"
    2. icomment:
      Regression in 8.5 appears to be related to refactoring in tclPathObj.c. Tentatively assigning to dgp for analysis, since Vince isn't terribly active at the moment.
      
      
    3. login: "kennykb"
    4. mimetype: "text/plain"
    5. username: "kennykb"
  3. Ticket change [bcb8aba784] (rid 101800) by dgp on 2012-08-20 22:01:04:

    1. title changed to: "[file normalize] fails EIAS"
  4. Ticket change [96e3640926] (rid 106404) by dgp on 2012-08-20 22:03:12:

    1. icomment:
      Aside from the EIAS bug, can someone testify that [glob]
      is returning the correct list of results?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [2c2b6ca5cc] (rid 118852) by dgp on 2012-08-20 22:14:49:

    1. icomment:
      The pattern "{}" is the empty set of alternative strings to match.
      Maybe my brain is still on vacation, but I'd expect that to match nothing.
      Simplest test, though:
      % glob {{}}
      .
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [d7c7ce5c33] (rid 107321) by dgp on 2012-08-20 22:16:05:

    1. icomment:
      Some spot testing suggests this is not a new regression.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [399b68c0f2] (rid 112423) by dgp on 2012-08-21 00:33:18:

    1. icomment:
      Regression dates to checkin:
      
      9cfcca63fb07d8c7d68befc16d84d01790094ac5 2004-01-21 19:59:32 UTC
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [84f21f0e1e] (rid 117646) by dgp on 2012-08-21 01:44:17:

    1. icomment:
      
      Curious to me that the -dir switch is needed to trigger
      the problem.  [pwd] isn't though.
      
      % file normalize [lindex [glob -dir . {{}}] 0]
      /local/tmp/dgp/fossil/tcl8.5/unix/
      % info patch
      8.5.12
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [606a0b2837] (rid 115994) by dgp on 2012-08-21 03:13:48:

    1. icomment:
      
      Issue appears to be callers of TclNewFSPathObj() not
      honoring its requirements.  Header comments state clearly
      that 'len' may not be zero.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [ea4cadd655] (rid 103345) by dgp on 2012-08-21 06:45:35:

    1. icomment:
      On further reflection, the empty string corner case for
      paths and path components have been pushed here and
      there so many times in intermittent games of "stomp the
      bug" we're better off not trusting the comments.
      
      Fix committed to core-8-5-branch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [8268967c94] (rid 117233) by dgp on 2012-08-21 06:50:50:

    1. closedate changed to: "2012-08-20T23:50:50"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      allow_comments - 1
      
      ....and trunk.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"