This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Simple find command does not work for * .html


> 
> For some reason the following find command will not complete for *.html.
> 
> It says: find: paths must precede expression....

User error.  Remember that the shell does filename globbing before
find ever sees its input (unless you have done set -f in a POSIX shell).
If the current directory contains .html files, then you really are
causing a syntax error.

> `find d:\ -type f -perm -u+w -name *.properties`

Try 'echo find d:\ -type f -perm -u+w -name *.html' to see what you
were really doing, then try
'find d:\ -type f -perm -u+w -name \*.html'
to fix it.  And while you are at it, since this is cygwin, try
'find /cygdrive/d -type f -perm -u+w -name \*.html'
to get rid of that pesky backslash (are you in a cmd.com shell,
explaining why you didn't quote it properly?) and behave more
unixy.

--
Eric Blake
volunteer cygwin findutils maintainer



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]