From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20055 invoked by alias); 1 Dec 2015 20:52:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19957 invoked by uid 89); 1 Dec 2015 20:52:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_40,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 01 Dec 2015 20:52:26 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id ADC6AC0B0205 for ; Tue, 1 Dec 2015 20:52:24 +0000 (UTC) Received: from [10.3.113.144] (ovpn-113-144.phx2.redhat.com [10.3.113.144]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tB1KqOPD006671 for ; Tue, 1 Dec 2015 15:52:24 -0500 Subject: Re: Calling cygpath from find exec? To: cygwin@cygwin.com References: <56537B03.4050204@codespunk.com> <565383D5.3010709@redhat.com> <20151201204301.GB2707@dimstar.local.net> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <565E0882.9060408@redhat.com> Date: Tue, 01 Dec 2015 20:52:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151201204301.GB2707@dimstar.local.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="b2PxPLtGihSmNvgWIMPQ6LB4Ep9qcp1E1" X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00015.txt.bz2 --b2PxPLtGihSmNvgWIMPQ6LB4Ep9qcp1E1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 621 On 12/01/2015 01:43 PM, Duncan Roe wrote: >> Why not just: >> >> find . -exec cygpath -wa {} + >> >> since cygpath handles more than one file in an invocation (that is, >> using '-exec {} +' rather than '-exec {} \;' is generally faster). >> > I would be using xargs. Especially under /cygdrive, the "-print0 / xargs = -0" > combination takes care of spaces and other nasties in file names. But so does 'find ... -exec ... {} +', and with one fewer process. xargs is fine when you need it, but here, you don't. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --b2PxPLtGihSmNvgWIMPQ6LB4Ep9qcp1E1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWXgiDAAoJEKeha0olJ0NqYnQIAIeorppnlzxWKH/fHfd38S99 xKYz4ptsnPhxqCeO+JmDpWIVZLxxpj6m8MCkG1awcf+MUX7dDCVb20xHpZbQguvO pLa3cY79YjLLeOi2eZYf5L4/nieAlg4T8mD4ACDyQvFqJ5gvUVLTtcjXmHJ9kBlh oKzK32/mIkghLuEfMnbPYKm+3DgR00yqB8bKkefGv0pPFAcFvSJNI1Dxae/i8Sll i/scIoNrhzJzdYOf/mFZYxCfpaWEmFlLhDIyLKl/uMBI6lnC/iO43imXvcLOq4cq dzwGQPpzaKLcrwS9U3L2AtRBOJOXOC7+N579ue9A/9m3zhIKtBcshj9WTCumDSs= =cYua -----END PGP SIGNATURE----- --b2PxPLtGihSmNvgWIMPQ6LB4Ep9qcp1E1--