:
"and keeping intact sequences of characters comprising expansions (see
Shell Expansions)."
Allen
--
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
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