[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
find: support all shell wildcards
From: |
eavis |
Subject: |
find: support all shell wildcards |
Date: |
Tue, 18 Mar 2003 14:35:35 +0000 |
GNU find version 4.1 says in its documentation:
> -name pattern
> Base of file name (the path with the leading directories
removed)
> matches shell pattern pattern. The metacharacters (`*', `?',
and
> `[]') do not match a `.' at the start of the base name.
[...]
This is a bit ambiguous because it seems to say that shell patterns are
supported but then says that only *, ? and [] are metacharacters - whereas
the shell also has {}. Anyway, find does not support {} shell wildcards:
% mkdir test
% cd test
% touch a b
% find . -name '{a,b}'
[no output]
For consistency I'd say it would be best for find's shell wildcards to be
the same as those supported by bash (maybe a libwildcard is needed). But
anyway, if you do not intend to support {} wildcards, the manual page
should make this explicit.
% find --version
GNU find version 4.1
--
Ed Avis <address@hidden>
- find: support all shell wildcards,
eavis <=