Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 011eb46b2fe30a0a3c11537d86c0f6ab9527ea1d
Ticket: 2511011fffffffffffffffffffffffffffffffff
[glob] can return non-existing filenames
User & Date: nobody on 2009-02-24 06:20:14
Changes

  1. icomment:
    Yes expansion of ~ is the culprit in this scenario. (most of?) Tcl's file commands interpret ~ as a home directory. If [glob] does not escape ~ in a filename it returns it is a bug in [glob]. Rewriting glob results to escape ~ is not an option. The contract of [glob] specifies it returns filenames. If you try to argue that automatic ~ expansion is a bad thing, I am likely to agree (it's a UNIX-ism for one) but that's unfixable without breaking backward compatibility. 
    
    
  2. login: "[email protected]"
  3. mimetype: "text/plain"
  4. username: "[email protected]"