delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/01/07/14:10:30

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=afjF9f
3+Kw94+ua9pNiK4wLdCsySutVtlGX/g5K4S4eQSr55NYY1xgWqYv3+AZpt1XoybK
IpMiUKVS7HwGZaQBDuevNKZ7aALV308TctVH0BFqJqWlmEejXnWjhjH2cuvl3O9z
EnCJE8jkLXHXZP+/3ISx6ld0li1SyXQYN2OyA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=FSql/gbqultD
tr0/qp2bHXdYgQE=; b=GRiHbGWv71kFynkdSSQLtC8sjvoVgpjs618NlvaSJodw
eDX2V702z5C9XU0ZdYMqck6fFDzyPUMDixmMsXxFsm4ivzF/Kkh89ezHfMg+BzVb
pbErYC0Z1MTrK4egnnW3VwC48KK5ZMnserH5gqnELDYy+yqKy3YiXWVNc7gG758=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <54AC7A83.5060205@redhat.com>
Date: Tue, 06 Jan 2015 17:14:59 -0700
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Force
References: <loom DOT 20150106T203355-631 AT post DOT gmane DOT org> <54AC48DE DOT 6000806 AT cygwin DOT com> <loom DOT 20150106T221646-526 AT post DOT gmane DOT org> <loom DOT 20150106T222234-870 AT post DOT gmane DOT org> <54AC55DE DOT 4090801 AT redhat DOT com> <loom DOT 20150107T010020-206 AT post DOT gmane DOT org>
In-Reply-To: <loom.20150107T010020-206@post.gmane.org>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes

--OXsUtoaAJvUaqGdtEhNFVMOx7CeFdPB3H
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 01/06/2015 05:06 PM, Paul wrote:
> | alias xargs=3D'xargs '
> |=20
> | Then the alias expansion of xargs will in turn allow alias expansion
> | of the next argument.  (Except that you then have to also create
> | trailing-space aliases for all options you commonly pass to xargs
> | between 'xargs' and the final command name).
>=20
> I'm not sure what you mean by needing trailing space aliases for
> common xargs options, but I'm going to take that as a warning of
> dragons lurking in that direction and avoid it.

I mean that:

alias xargs=3D'xargs '
alias ls=3D'ls --append-exe'
find -pa pdfcrop | xargs ls

will execute 'ls --append-exe', but

alias xargs=3D'xargs '
alias ls=3D'ls --append-exe'
find -pa pdfcrop -print0 | xargs -0 ls

will not, unless you also:

alias -- -0=3D'-0 '

--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--OXsUtoaAJvUaqGdtEhNFVMOx7CeFdPB3H
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJUrHqDAAoJEKeha0olJ0NqUwUH/jT6kXs9WPYZ/ke2PpOXN+Df
yrYJo+gIlXC147+XOyJ5sS6qDEXd+jM+ULU2eNudjk5NiOSNN8noesekXzElXbHl
QBGouPFlcrfjyqKMkjkkG9GpZkJsLHhRtAajz/aqSqUCmsn1MEN17OhruT8z1xUL
HNX7Z8uhhX3C/6b0E/vF/8/I1TGVaBr5DrqCOatcTjKRpXvUkrNE8t6lZ0ilxY2Y
P+RzCG782I3mSiQ//x5fR7D13HQGbKIPM5K05cEqGUQ5SD61YVK50JJyFoEDYPww
3fabDRj61GTZudDqU+1PiPc4kaOYnODr4g1CjaDWD4WdFQKS2b/jLpPZe9UQHVE=
=TEVi
-----END PGP SIGNATURE-----

--OXsUtoaAJvUaqGdtEhNFVMOx7CeFdPB3H--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019