| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| From: | ericblake AT comcast DOT net (Eric Blake) |
| To: | Alexander Gottwald <alexander DOT gottwald AT s1999 DOT tu-chemnitz DOT de> |
| Cc: | cygwin AT cygwin DOT com |
| Subject: | Re: xargs still nok? |
| Date: | Thu, 08 Sep 2005 15:29:07 +0000 |
| Message-Id: | <090820051529.98.432058C300055F200000006222064246130A050E040D0C079D0A@comcast.net> |
| X-Authenticated-Sender: | ZXJpY2JsYWtlQGNvbWNhc3QubmV0 |
> > # let find do the grouping, even faster than xargs!
> > $ time find . -name '*' -exec echo {} + >/dev/null
>
> Hm. nice! I never heard about that one. Seems to be quite new.
>
POSIX 2003 added this feature, and GNU find only implemented
it in 4.2.12 (i.e. cygwin has not had it until 4.2.25-1, since cygwin
was previously at 4.2.11-CVS). Because it is relatively new,
portable scripts should not rely on its existance yet (wait for
other platforms to catch up to POSIX first). Also, be aware that
there are security implications when using -exec, for which
-execdir is a better option - read the info pages.
(Re)read http://sources.redhat.com/ml/cygwin-announce/2005-09/msg00002.html
to see what else find/xargs/locate have recently added.
--
Eric Blake
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |