This is the mail archive of the cygwin@cygwin.com 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]

Re: Another find missing arg to -exec prob..


Simon, DOS doesn't consider the semicolon to be a special character
(unlike bash, where it's a statement seperator).  So by backslashing
that final semicolon, find doesn't see it.  However, when I run the
command at a dos shell, I get:

/usr/bin/FIND: grep: No such file or directory
/usr/bin/FIND: grep: No such file or directory
/usr/bin/FIND: grep: No such file or directory

etc for each .c file.  That's because when you run like this, you
haven't got all your fun cygwin environment set up.  Since you're
giving an explicit path to find, I can tell that you don't have
cygwin\bin both.  This means that when find runs, grep isn't on the
path.  Try this:

f:\cygwin\bin\find . -name *.c -exec /usr/bin/grep -n -e blah {}
\dev\null ;

This got me the same results in my DOS shell as running

find . -name *.c -exec grep -n -e blash {} \;

did in my bash shell.  Good luck-

Augustus

--Simon Heffer wrote:--
>HI,
>
>I'm trying to run this from EMACSNT and getting the missing argument
to
>-exec message...
>
>f:\cygwin\bin\find . -name *.c -exec grep -n -e blah {} \dev\null \;
>
>Any thoughts,
>
>Simon Heffer ( simon.heffer@royalblue.com)

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]