[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Here strings and pathname expansion
From: |
Chet Ramey |
Subject: |
Re: Here strings and pathname expansion |
Date: |
Wed, 16 Feb 2011 22:22:58 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 |
On 2/14/11 12:43 AM, Jan Schampera wrote:
> Hello world,
>
>
> I recently answered a question about using the asterisk mixed with
> redirection and other words. This also lead me to the documentation that
> states (REDIRECTION section):
>
> ---
> The word following the redirection operator in the following
> descriptions, unless otherwise noted, is subjected to brace expansion,
> tilde expansion, parameter expansion, command substitution, arithmetic
> expansion, quote removal, pathname expansion, and word splitting. If it
> expands to more than one word, bash reports an error.
> ---
>
> This is true, for here documents the exceptions are mentioned. However, for
> here strings no exceptions are mentioned ("The WORD is expanded [...]]",
> but the WORD is at least not subject to pathname expansion:
True. That is the only expansion it does not undergo.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/