Skip to content
Tcl Source Code History Of Ticket 1569064
Login

History Of Ticket 1569064

Artifacts Associated With Ticket 1569064

  1. Ticket change [72a9a9939f] (rid 100900) by wliao on 2006-10-02 05:27:05:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The fCmd-6.26 test uses [file dirname ~] and [file tail
      ~] to construct the test message. This acts like [file
      normalize] in expanding the ~ and any symbolic links.
      However, the error message from [file copy] behaves like
      [file nativename]: the ~ is expanded, but it doesn't seem
      to follow the symbolic links. The test on a machine with
      symbolic links in ~ will fail like this
      
        ---- Result was:
        1 {error copying "~/td1" to "td1":
      "/home/wl/td1/td2": permission denied}
        ---- Result should have been (exact matching):
        1 {error copying "~/td1" to "td1":
      "/d1/home/wl/td1/td2": permission denied}
      
      The error message of [file copy] can be changed, which is
      probably a bad idea, or a minor change be made to the test
      by wrapping the ~ with [file natiename]:
      
        tests$ diff fCmd.test fCmd.test.orig
        584c584
        < } "1 {error copying \"~/td1\" to \"td1\": \"[file
      join [file dirname [file nativename ~]] [file tail
      [file nativename ~]] td1 td2]\": permission denied}"
        ---
        > } "1 {error copying \"~/td1\" to \"td1\": \"[file
      join [file dirname ~] [file tail ~] td1 td2]\":
      permission denied}" 
      
      
    4. foundin initialized to: "obsolete: 8.5a4"
    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: "wliao"
    10. subsystem initialized to: "34. tcltest Package"
    11. title initialized to:
      different ~ expansions in [file] causes fCmd 6.26 to fail
      
    12. type initialized to: "Bug"
  2. Ticket change [12113fa617] (rid 95248) by dgp on 2006-10-03 01:50:09:

    1. assignee changed to: "vincentdarley"
    2. subsystem changed to: "37. File System"
  3. Ticket change [ed55171afe] (rid 103860) by dgp on 2006-10-05 00:28:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Do you see the same problem
      with 8.4.14 ?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [8d5f3cc021] (rid 127917) by wliao on 2006-10-05 01:54:17:

    1. icomment:
      Logged In: YES 
      user_id=863965
      
      It seems this is the same behavior in 8.4.14:
      
        ---- Result was:
        1 {error copying "~/td1" to "td1": "/home/wl/td1/td2": 
      permission denied}
        ---- Result should have been (exact matching):
        1 {error copying "~/td1" to "td1": "/d1/home/wl/td1/td2":
      permission denied}
        ==== fCmd-6.26 FAILED
      
      Here is the output from with tcl (via tcltest):
      
        % puts $tcl_patchLevel
        8.4.14
        % puts [file normalize ~]; puts [file nativename ~]
        /d1/home/wl
        /home/wl
      
      
      
    2. login: "wliao"
    3. mimetype: "text/plain"
    4. username: "wliao"
  5. Ticket change [08c45f98d5] (rid 89617) by dgp on 2006-10-13 00:48:11:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      I'd like to understand the history
      better before accepting this change.
      
      That technique for constructing
      the expected test result dates all
      the way back to 1998.  Has this test
      always failed under these circumstances,
      or are we see some recent regression
      exposed?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [eeeb6d18d5] (rid 108901) by dgp on 2006-10-13 01:21:07:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      This appears to be an
      8.3 -> 8.4 change (regression?)
      in ~ expansion.
      
      On a similar machine configuration
      I have access to:
      
      % info patchlevel
      8.3.5
      % file dirname ~
      /users
      % file dirname /users/dgp
      /users
      
      % info patchlevel
      8.4.0
      % file dirname ~
      /site/users
      % file dirname /users/dgp
      /users
      
      Vince can you comment?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [a63471a78c] (rid 98558) by nobody on 2006-10-13 02:06:53:

    1. icomment:
      Logged In: NO 
      
      Hmm,
      
      Well it's SetFsPathFromAny that does the '~ = TclGetEnv("HOME",...)', so 
      something interesting must happen after that point. It's certainly not clear to me 
      why there would be a difference in behaviour (particularly one that stems back 
      to 8.4.0 -- I could imagine that some of the 'cleverer' code added since then 
      might have caused some change here, but 8.4.0 was relatively simple from an FS 
      point of view).
      
      Vince.
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  8. Ticket change [12773b3938] (rid 95307) by dgp on 2006-11-10 11:33:53:

    1. assignee changed to: "das"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      ChangeLog suggests you
      just fixed this?  At
      least by some definition
      of "fixed" ?
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  9. Ticket change [cfaeb68a08] (rid 113027) by das on 2006-11-10 11:40:53:

    1. icomment:
      Logged In: YES 
      user_id=90580
      
      oops, didn't see this bug, yes I changed the test to compare the ~ path from the [file copy] error message to $::env
      (HOME) instead of [file dirname ~]/[file tail ~].
      [file dirname ~] appears to normalizes the result of ~ expansion, haven't investigated why.
      feel free to revert if this wasn't the correct fix...
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  10. Ticket change [1cb7b4d940] (rid 90660) by dgp on 2006-11-10 23:58:05:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      It's fine to correct the test
      failure, but I don't think we've
      got to the bottom of the
      underlying 8.3->8.4 regression yet.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [a59b7db781] (rid 110407) by das on 2006-11-12 18:43:12:

    1. assignee changed to: "vincentdarley"