RE: find -name when name contains a slash

2005-06-01 Thread Avis, Ed
James Youngman wrote: >>What implementation of find has this -wholename predicate? > >See the NEWS file. It's specific to GNU find. Ah. My fault for not upgrading to the latest release before asking about a missing feature. Thanks. Still think it would be useful to print a warning when '-nam

RE: find -name when name contains a slash

2005-05-11 Thread Avis, Ed
James Youngman wrote: >$ ./find . -name quux/umsp >./find: warning: Unix filenames usually don't contain slashes >(though pathnames do). That means that '-name quux/umsp' will >probably evaluate to false all the time on this system. You >might find the '-wholename' test more useful, or perhap

find -name when name contains a slash

2005-05-09 Thread Avis, Ed
% find . -name foo/bar Actual output: nothing Desired output: warning: don't be silly, Unix filenames can't contain a slash. Alternatively, it could list all files called foo which are inside a directory called bar under the current directory (which is what I was kind of hoping for). -- Ed Avis