Overview
| Artifact ID: | 8c5284e08afea04cb88d0f3d5c68bdcf914b121c |
|---|---|
| Ticket: | 3608360fffffffffffffffffffffffffffffffff
Incompatible behaviour of "file exists" |
| User & Date: | nijtmans on 2013-03-18 20:03:27 |
Changes
- closedate changed to: "2013-03-18T13:03:27"
- closer changed to: "nijtmans"
- 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.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Pending"
- username: "nijtmans"