Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7e82b73fb217e9534f1be7313297fa4f20014a65
Ticket: 218394ffffffffffffffffffffffffffffffffff
Files with "[" in filename not detected by glob command
User & Date: nobody on 2000-10-26 00:57:03
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 5102 Bug
    Version: 8.3
    SubmitDate: '2000-04-17'
    LastModified: '2000-04-17'
    Severity: CRIT
    Status: Closed
    Submitter: awb
    ChangedBy: hobbs
    OS: All
    FixedDate: '2000-10-25'
    ClosedDate: '2000-04-17'
    
    
    Create directories "exit_1" and "[exit]_1". Create the files
    "exit_1/exit_1.xdh" and "[exit]_1/[exit]_1.xdh".
    The glob command 
    glob {exit_1/*} works correctly, while
    glob {[exit]_1/*} does not.
    
    
    Using []'s in a filename is not common, but is used by some programs for specific reasons.  At Altera, we used ()'s instead, but it's the same sort of thing.
    
    -- 04/17/2000 redman
    
    Pilot error - [] are special characters in the glob command, just
    as with regexps, and must be appropriately escaped.  If you want
    to avoid that trouble, you can use the new to 8.3 -path switch
    to glob. 
    -- 04/17/2000 hobbs
    
    
    
  4. foundin changed to: "obsolete: 8.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "37. File System"
  10. title changed to:
    Files with "[" in filename not detected by glob command
    
  11. type changed to: "Bug"