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

Reply via email to