Overview
| Artifact ID: | 0cfb7af501a28893058fb570c8da1dcb7c0c4ad8 |
|---|---|
| Ticket: | 3608360fffffffffffffffffffffffffffffffff
Incompatible behaviour of "file exists" |
| User & Date: | dkf on 2013-03-18 20:44:46 |
Changes
- foundin changed to: "current: 8.6.0"
- icomment:
I think you're misreading. This is (supposedly) a regression in 8.6 whereby, if 'x.tcl' exists in the current directory (but '*.tcl' does not), [file exists *.tcl] returns 1. If there's a problem, it exists in that NativeAccess function. (I cannot confirm or deny; I don't have the right platform. I also don't know if the Cygwin build uses the same code; if not, it doesn't count.) I suspect that if there is a problem, it is inside there and related to the use of an API that does expansion. FindFirstFile is such a function, and it is definitely used in the NativeAccess code; the commit I indicated appears to be the one that introduced it. FindFirstFile is documented here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa364418(v=vs.85).aspx Moreover, I've confirmed that * is an illegal character in a filename on Windows. Search for "reserved characters" in http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx At the very least, we could have a test for this! In fact, I'll write one. [file exists] definitely shouldn't ever do wildcard expansion behind the scenes on any platform.
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "dkf"