Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 72a9a9939fe443eca689693643c0b658d93230e9
Ticket: 1569064fffffffffffffffffffffffffffffffff
different ~ expansions in [file] causes fCmd 6.26 to fail
User & Date: wliao on 2006-10-02 05:27:05
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.5a4"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "wliao"
  10. subsystem changed to: "34. tcltest Package"
  11. title changed to:
    different ~ expansions in [file] causes fCmd 6.26 to fail
    
  12. type changed to: "Bug"