Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-12-17
01:40 • Closed ticket [654646ffff]: glob + path with brackets = no files plus 7 othe... artifact: 54d3408f99 user: hobbs
2002-12-16
15:30 • New ticket [654646ffff]. artifact: 682cabecb6 user: nobody

glob + path with brackets = no files

Closed / Invalid654646ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-12-16 15:30:44
if you glob a directory that contains brackets it will not 
find any files:

for example, if you have the dir:

/home/blabla/[testing]
and in there you have some files..

if you do: glob /home/blabla/\[testing\]/* you will get:
no files matched glob pattern "/home/blabla/\[testing\]/*"
while evaluating {glob -type f /home/blabla/\[testing\]/*}
hobbsplain2002-12-17 01:40:51
Logged In: YES 
user_id=72656

This is the purpose of the -directory switch, to allow use of 
directories with glob-sensitive characters.  It is best to just 
make a habit of using it always.
Log in (anonymous is fine) to add a comment.