Artifacts Associated With Ticket 1569064fff
Ticket change [72a9a9939f] (rid 100900) by wliao on 2006-10-02 05:27:05:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- 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}" - foundin initialized to: "obsolete: 8.5a4"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "wliao"
- subsystem initialized to: "34. tcltest Package"
- title initialized to:
different ~ expansions in [file] causes fCmd 6.26 to fail
- type initialized to: "Bug"
Ticket change [12113fa617] (rid 95248) by dgp on 2006-10-03 01:50:09:
- assignee changed to: "vincentdarley"
- subsystem changed to: "37. File System"
Ticket change [ed55171afe] (rid 103860) by dgp on 2006-10-05 00:28:57:
- icomment:
Logged In: YES user_id=80530 Do you see the same problem with 8.4.14 ?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [8d5f3cc021] (rid 127917) by wliao on 2006-10-05 01:54:17:
- 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 - login: "wliao"
- mimetype: "text/plain"
- username: "wliao"
- icomment:
Ticket change [08c45f98d5] (rid 89617) by dgp on 2006-10-13 00:48:11:
- 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?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [eeeb6d18d5] (rid 108901) by dgp on 2006-10-13 01:21:07:
- 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?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [a63471a78c] (rid 98558) by nobody on 2006-10-13 02:06:53:
- 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. - login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [12773b3938] (rid 95307) by dgp on 2006-11-10 11:33:53:
- assignee changed to: "das"
- icomment:
Logged In: YES user_id=80530 ChangeLog suggests you just fixed this? At least by some definition of "fixed" ?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [cfaeb68a08] (rid 113027) by das on 2006-11-10 11:40:53:
- 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...
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [1cb7b4d940] (rid 90660) by dgp on 2006-11-10 23:58:05:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [a59b7db781] (rid 110407) by das on 2006-11-12 18:43:12:
- assignee changed to: "vincentdarley"