[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval
From: |
Eric Blake |
Subject: |
Re: eval |
Date: |
Thu, 05 May 2011 08:11:03 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 |
[adding bug-autoconf to document a NetBSD bug]
On 05/05/2011 07:23 AM, Chet Ramey wrote:
> On 5/4/11 4:40 PM, Rafael Fernandez wrote:
>> I am used to the behavior of sh on NetBSD which does not require
>> enclosing positional parameters.
>
> I'd call that a pretty serious incompatibility on the part of ash and its
> descendants (BSD sh, dash, etc.). There's no good reason that
>
> set -- a b c d e f g h i j
> echo $10
>
> should echo `j'.
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."
And worth documenting as a portability pitfall in the autoconf manual.
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- 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 <=
- Re: eval, Chet Ramey, 2011/05/05
- 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