[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval
From: |
Chet Ramey |
Subject: |
Re: eval |
Date: |
Thu, 05 May 2011 10:43:08 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 |
On 5/5/11 10:11 AM, Eric Blake wrote:
> Also a POSIX violation:
>
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02
>
> "The parameter name or symbol can be enclosed in braces, which are
> optional except for positional parameters with more than one digit or
> when parameter is followed by a character that could be interpreted as
> part of the name."
I agree with this interpretation, but the following sentence can be
interpreted as placing the burden on the shell programmer:
"When a positional parameter with more than one digit is specified, the
application shall enclose the digits in braces (see Parameter Expansion)."
Still, sh has required the braces since time immemorial. It makes no
sense that ash would have done it differently
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- eval, Rafael Fernandez, 2011/05/05
- Re: eval, Jonathan Nieder, 2011/05/03
- Re: eval, DJ Mills, 2011/05/03
- Re: eval, Rafael Fernandez, 2011/05/05
- Re: eval, Jonathan Nieder, 2011/05/04
- Re: eval, Andreas Schwab, 2011/05/04
- Re: eval, Rafael Fernandez, 2011/05/05
- Re: eval, Chet Ramey, 2011/05/05
- Re: eval, Eric Blake, 2011/05/05
- Re: eval,
Chet Ramey <=
- Re: eval, Eric Blake, 2011/05/05
- Re: eval, Chet Ramey, 2011/05/05
- Re: eval, Sven Mascheck, 2011/05/05
- Re: eval, Chet Ramey, 2011/05/05
Re: eval, Greg Wooledge, 2011/05/04