Force

Eric Blake eblake@redhat.com
Wed Jan 7 00:15:00 GMT 2015


On 01/06/2015 05:06 PM, Paul wrote:
> | alias xargs='xargs '
> | 
> | 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).
> 
> 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='xargs '
alias ls='ls --append-exe'
find -pa pdfcrop | xargs ls

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

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

will not, unless you also:

alias -- -0='-0 '

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150107/6a6e7d50/attachment.sig>


More information about the Cygwin mailing list