Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8c5284e08afea04cb88d0f3d5c68bdcf914b121c
Ticket: 3608360fffffffffffffffffffffffffffffffff
Incompatible behaviour of "file exists"
User & Date: nijtmans on 2013-03-18 20:03:27
Changes

  1. closedate changed to: "2013-03-18T13:03:27"
  2. closer changed to: "nijtmans"
  3. icomment:
    On UNIX (actually Cygwin):
    $ tclsh8.5
    % puts $tcl_patchLevel
    8.5.13
    % glob *.tcl
    x.tcl
    % file exists *.tcl
    0
    
    $ tclsh8.6
    % puts $tcl_patchLevel
    8.6.0
    % glob *.tcl
    x.tcl
    % file exists *.tcl
    0
    % exit
    
    
    Conclusion: the fact that using the '*' character this way
    in [file exists] worked at all in win32 was an undocumented
    feature and is non-portable. On UNIX, the '*' character can be
    used in filenames like any other character, only it must be
    escaped if the filename goes through a shell.
    
    
  4. login: "nijtmans"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Pending"
  8. username: "nijtmans"