Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
To: "Soren Andersen" <soren@wonderstorm.com>
Date: Fri, 14 Sep 2001 18:58:17 +0200
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Re: `find [...] -exec [...]' confusion
Reply-to: gp@familiehaase.de
CC: cygwin@cygwin.com
Message-ID: <3BA25349.21659.14A9E898@localhost>
In-reply-to: <3BA1EB7A.11188.6EB1886@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)
X-Hops: 1
X-Sender: 320081107336-0001@t-dialin.net

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/

