Artifacts Associated With Ticket 611125ffffffffffffffffffffffffffffffffff
Ticket change [cc4cdde56a] (rid 95673) by jkbonfield on 2002-09-18 14:40:07:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
glob and open work differently when it comes to backslashes on Windows. Both work fine with /. Eg: % glob S:/foo/bar S:/foo/bar % open S:/foo/bar filexxx With backslashes, glob works for the drive letter: % glob S:\\foo/bar S:\foo/bar But with double backslash it fails, yet open does not: % glob S:\\foo\\bar no files matched ... % open S:\\foo\\bar fileyyy
- foundin initialized to: "obsolete: 8.4.0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "jkbonfield"
- subsystem initialized to: "37. File System"
- title initialized to: "glob and backslashes on windows"
- type initialized to: "Bug"
Ticket change [0be39ba604] (rid 114077) by vincentdarley on 2002-09-19 00:24:03:
- 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"