Glob should have an "AND" operation
Submitted by Saturday, 7 May, 2005 - 03:55
on
I was just messing around with glob, and there's no way to have an AND search. For example, if I do "{*.*, !{*.jpg, *.gif}}" it returns everything, even jpg and gif files. This example is kind of pointless, because you can do it without *.*, but I would like to see a way to do this. Another example, if I wanted to filter files that had "ca" in it but not image files, I don't think it's possible. "{*ca*.*, !{*.jpg, *.gif}}" would not exclude images. Maybe it could be "{*ca*.* + !{*.jpg, *.gif}}" or just use "AND".
If no one else thinks so, it doesn't really matter to me. It's just my 2 cents.
If no one else thinks so, it doesn't really matter to me. It's just my 2 cents.