bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confused about how bash breaks input into words


From: Allen Halsey
Subject: Re: Confused about how bash breaks input into words
Date: Wed, 24 Feb 2010 02:41:36 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Eric Blake <eblake <at> 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 being
> parsed).
> 

Thank you Eric and Chris.

The link to the POSIX section on Token Recognition really helped my 
understanding.

I don't think I missed anything in the Bash Reference Manual that 
explains this.

Allen






reply via email to

[Prev in Thread] Current Thread [Next in Thread]