Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0be39ba6047ed38e9c1d34af7f213238ada6a6c4
Ticket: 611125ffffffffffffffffffffffffffffffffff
glob and backslashes on windows
User & Date: vincentdarley on 2002-09-19 00:24:03
Changes

  1. closedate changed to: "2002-09-18T17:24:03"
  2. closer changed to: "vincentdarley"
  3. 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.
    
    
    
  4. login: "vincentdarley"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "vincentdarley"