Overview
| Artifact ID: | 0be39ba6047ed38e9c1d34af7f213238ada6a6c4 |
|---|---|
| Ticket: | 611125ffffffffffffffffffffffffffffffffff
glob and backslashes on windows |
| User & Date: | vincentdarley on 2002-09-19 00:24:03 |
Changes
- closedate changed to: "2002-09-18T17:24:03"
- closer changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=32170 Remember that 'glob foo' is treating 'foo' as a pattern, and therefore if 'foo' contains "glob-sensitive" characters (the curly braces and backslash, for example), then those characters must be quoted if you don't want glob to treat foo as a pattern. If you don't want 'foo' treated as a pattern, then use '- path', for example: glob -path S:\\foo\\bar "" in your example above will work. What is happening is that 'glob' is actually looking for the file S:foo/bar in your second example (which we interpret as S:/foo/bar and is found), but in the 3rd example it is looking for S:foobar (= S:/foobar) which doesn't exist. 'open' obviously doesn't treat its argument as a pattern, so is quite happy either way.
- login: "vincentdarley"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "vincentdarley"