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.