Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f845dcb1797eeefc054f95878d57e2220260898d
Ticket: 541989ffffffffffffffffffffffffffffffffff
trailing dots '...' ignored in filenames
User & Date: vincentdarley on 2002-04-10 14:08:34
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Trailing dots in filenames are stripped off.  I'm 
    assuming this is not a bug in Tcl (since I know the 
    filesystem code pretty well, and this occurs in both 
    8.3 and 8.4), so I think it's a bug in the filename.n 
    man page, which doesn't mention this "feature" at all.
    
    [my comments below have been added like this]
    
    % set fn "C:/WINNT/Profiles/VinceD/Alpha-
    v8/tmp/wikitmp/Edit Ask, and it shall be given."
    C:/WINNT/Profiles/VinceD/Alpha-v8/tmp/wikitmp/Edit 
    Ask, and it shall be given.
    % file attributes $fn -longname
    C:/WINNT/Profiles/VinceD/Alpha-v8/tmp/wikitmp/Edit 
    Ask, and it shall be given
    [the longname is missing the trailing '.']
    % file attributes $fn -shortname
    C:/WINNT/Profiles/VinceD/Alpha-v8/tmp/wikitmp/EDITAS~1
    % cd [file dirname $fn]
    % glob *
    {Edit Ask, and it shall be given}
    [oh! the file on disk actually doesn't have the dot]
    % file exists $fn
    1
    % file exists $fn.
    1
    % file exists $fn....
    1
    % file exists $fn.......
    1
    % info tclversion
    8.3
    % file exists $fn.......x
    0
    % file exists $fn........
    1
    % close [open $fn.... r]
    % close [open "${fn}dup....." w]
    % glob *
    {Edit Ask, and it shall be given} {Edit Ask, and it 
    shall be given.dup}
    % 
    
  4. foundin changed to: "obsolete: 8.3.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vincentdarley"
  9. subsystem changed to: "37. File System"
  10. title changed to: "trailing dots '...' ignored in filenames"
  11. type changed to: "Bug"