Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c581894a107c007cecf7918bc2ddb053f719dd73
Ticket: 956063ffffffffffffffffffffffffffffffffff
[file dirname] broken
User & Date: dgp on 2004-05-18 16:47:51
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    % info patch
    8.5a1
    % file mkdir foo
    % set f [open [file join foo bar.tcl] w]
    file3
    % puts $f {
    puts SOURCE:[info script]
    puts NORMALIZED:[file normalize [info script]]
    puts HOME:[file dirname [file normalize [info script]]]
    }
    % close $f
    % source [file join foo bar.tcl]
    SOURCE:foo/bar.tcl
    NORMALIZED:/home/dgp/foo/bar.tcl
    HOME:/home/dgp
    
    Of course, I expect to see
    
    HOME:/home/dgp/foo
    
    This is a very common way to set up
    paths relative to a script being 
    [source]d.  It must be reliably correct.
    
  4. foundin changed to: "obsolete: 8.5a1"
  5. priority changed to: "8"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "37. File System"
  10. title changed to: "[file dirname] broken"
  11. type changed to: "Bug"