This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Force


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

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]