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


Eric Blake <eblake <at> redhat.com> writes:
> 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 '

The bash man page says " A trailing space in  value causes the next
word  to be checked for alias substitution when the alias is
expanded."  Got it.  Thanks.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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