3 ms·
Well it seems the root of the problem is > * Most importantly, the 'find' command uses a different algorithm than shell globbing does when matching wildcard ch
by shmageggy 7y ago
Well it seems the root of the problem is
> * Most importantly, the 'find' command uses a different algorithm than shell globbing does when matching wildcard characters. More specifically, the find command will apply the search pattern against the base of the file name with all leading directories removed. This is contrasted from shell globbing which will expand the wildcard between each path component separately. When no path components are specified, the wildcard will match only files in the current directory.*
So there does seem to be a `find` specific issue here
- deleted 7y ago[deleted]
- Izkata 7y agoThat's just ignorance about find. The globbing works fine, they're just not doing the search they think they are - they seem to think "-name" acts like "-path": $ ls Foobar/ one three two $ find . -path '*bar/t*' ./Foobar/two ./Foobar/three