Overview
| Artifact ID: | 011eb46b2fe30a0a3c11537d86c0f6ab9527ea1d |
|---|---|
| Ticket: | 2511011fffffffffffffffffffffffffffffffff
[glob] can return non-existing filenames |
| User & Date: | nobody on 2009-02-24 06:20:14 |
Changes
- 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.
- login: "[email protected]"
- mimetype: "text/plain"
- username: "[email protected]"