This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: `find [...] -exec [...]' confusion
- To: "Soren Andersen" <soren at wonderstorm dot com>
- Subject: Re: `find [...] -exec [...]' confusion
- From: "Gerrit P. Haase" <gp at familiehaase dot de>
- Date: Fri, 14 Sep 2001 18:58:17 +0200
- CC: cygwin at cygwin dot com
- Organization: Esse keine toten Tiere
- Reply-to: gp at familiehaase dot de
Soren Andersen schrieb am 2001-09-14, 11:35:
>Hello,
>
>I have been wondering about this for a long time. In msg #36282 by: Simon
>Heffer, he mentions what i have found: that when `find' is run with an -exec
>option, there is invariably a message saying "missing argument to exec."
>
>Trying something like this:
>
>find /perl -name "*.pl" -exec cat {}
>
>gives me that error message. can someone confirm to me that this is a bug? or
>not?
This is an error for me, too.
Try this instead:
find /perl -name "*.pl" -exec cat {} /dev/null \;
> Thank you for an answer that goes easy on the "its-an-FAQ-you-idiot"s.
Gerrit
--
=^..^=
--
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/