Artifacts Associated With Ticket 997889ffffffffff
Ticket change [3da794009c] (rid 121124) by uring on 2004-07-26 08:43:01:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Run this example. It prints "/tmp/foo/bar" instead of "/tmp/xxx/bar" . # ----------------------------------------------------------- cd /tmp ;# working directory file delete -force foo xxx ;# make clean file mkdir foo/bar ;# some directories file link xxx foo ;# xxx -> foo set target xxx/bar ;# store path of subdirectory in variable file isdirectory $target ;# check xxx/bar file delete xxx ;# now delete symlink file copy foo xxx ;# recreate as copy of bar puts [file normalize $target] # ---------------------------------------------------------- Comments: (1) uncomment "file isdirectory ..." and it's OK (2) change to "file isdirectory xxx/bar" and it's OK I assume that the path /tmp/foo/bar is cached in the variable "target" (in Tcl_Obj's internal representation). Having "string length $target" _after_ "file isdirectory $target" changes variable to string type and things are OK. ----- Ulrich Ring - [email protected]
- foundin initialized to: "obsolete: 8.4.6"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "uring"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "file normalize returns wrong path"
- type initialized to: "Bug"
Ticket change [7849d21b85] (rid 89936) by dgp on 2004-07-27 21:11:54:
- status changed to: "Pending"
Ticket change [175c797cc8] (rid 122481) by dgp on 2004-07-27 21:11:55:
- assignee changed to: "vincentdarley"
- closedate changed to: "2004-07-27T14:11:55"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Looks like a Duplicate of 953284
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- subsystem changed to: "37. File System"
- username: "dgp"
Ticket change [75be2ec64d] (rid 105439) by uring on 2004-07-27 22:10:39:
- icomment:
Logged In: YES user_id=123371 BTW: I'm not able to reproduce the bug with tcl8.5a1.
- login: "uring"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "uring"
- icomment:
Ticket change [8ef08af66c] (rid 120203) by dgp on 2004-07-31 10:30:10:
- closedate changed to: "2004-07-31T03:30:10"
- closer changed to: "dgp"
- status changed to: "Closed"