Bash Ref Manual on tokenization omits consideration of expansions

2010-02-24 Thread Allen Halsey
: "and keeping intact sequences of characters comprising expansions (see Shell Expansions)." Allen -- Allen Halsey

Re: Confused about how bash breaks input into words

2010-02-23 Thread Allen Halsey
Eric Blake redhat.com> writes: > > But you missed that: > > $(date +'%Y-%m-%d') > > is an entire word (basically, an unquoted $ character consumes until the > end of the shell substitution, command substitution, or arithmetic > substitution, and that entire scan becomes part of the current word

Confused about how bash breaks input into words

2010-02-23 Thread Allen Halsey
ys "The words that are not variable assignments or redirections are expanded (see Shell Expansions)." This suggests to me that a command substitution, indeed all expansions, should be treated as a single word. Can someone elucidate how bash breaks the input into words? Thank you, Allen Halsey