Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8d0a46fb2f5a3ae746a2b98d5528a7f55e258448
Ticket: f34cf83dd0150cbbea33469d70a6a400559979c1
unexpected result for "file normalize"
User & Date: gustafn2 on 2017-04-25 09:48:09
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Two slashes in paths are only sometimes reduced to a single slash. This inconsistent behavior contradicts the aim that "file normalize" returns 'the “standard” format for the native platform'. 
    
    This is seen at least with tcl 8.6.6 and Tcl 8.7a0 on MacOS X and Linux.
    
       % file normalize //foo
       //foo
       % file normalize //foo/
       /foo
       % file normalize ///foo
       /foo
       % file normalize /foo//bar
       /foo/bar
       % file normalize //foo/bar
       //foo/bar
       % file normalize //foo//bar
       /foo/bar
       % file normalize //foo/bar/
       /foo/bar
    
       % set tcl_patchLevel
       8.6.6
    
  5. foundin changed to: "8.6.6 and 8.7"
  6. is_private changed to: "0"
  7. login: "gustafn2"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "gustafn2"
  13. subsystem changed to: "37. File System"
  14. title changed to: "unexpected result for "file normalize""
  15. type changed to: "Bug"