On 2014-09-18, Paul.Domaskis wrote: > Andrew DeFaria <Andrew <at> DeFaria.com> writes: > >On 9/18/2014 11:42 AM, David Boyce wrote: > >>> The path argument to find must be a directory. > >> > >> Sorry, but I can't let this go by. The statement above is > >> incorrect, as a simple test like "find /etc/passwd -print" would > >> show. > > > > Or just "find /etc/passwd". (-print has been the default for > > decades... The man page it's the default but you should proob) > > Maybe things have changed. I think Gary Johnson is right.
David is right: find does accept a file name as the path argument. I didn't know that. (Obviously.) The man page doesn't really say, but all references to the path argument suggest that it contains a directory or list of directories. Nevertheless, the completion function for find (_find(), in /etc/bash_completion.d/findutils or /usr/share/bash-completion/completions/find) does expect that argument to be a directory and expands only directories. Regards, Gary -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple