Files with "[" in filename not detected by glob command
Closed / Fixed218394ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:57:03
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
welch Closed ticket [218394ffff].
[History diff]2000-10-26 08:21:17
dgp Ticket [218394ffff]: 4 changes
[History diff]2001-04-14 02:17:48
Log in (anonymous is fine) to add a comment.