This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Force
- From: Paul <Paul dot Domaskis at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 7 Jan 2015 15:26:22 +0000 (UTC)
- Subject: Re: Force
- Authentication-results: sourceware.org; auth=none
- 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> <54AC7A83 dot 5060205 at redhat dot com>
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