[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Here strings and pathname expansion
From: |
Roman Rakus |
Subject: |
Re: Here strings and pathname expansion |
Date: |
Mon, 14 Feb 2011 18:04:48 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.7 |
On 02/14/2011 06: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.
---
It is noted in Here Documents (and Here Strings is a variant of here
documents). And there is:
No parameter expansion, command substitution, arithmetic expansion, or
pathname expansion is performed on word.
This is EITHER
(a) a documentation mistake OR
(b) a bug
Case (c) - bad reading of documentation ;)
Case (a) is clear, the exception is not mentioned.
It is.
RR