bug-bash
[Top][All Lists]
Advanced

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

Re: bash-3.1.1 parses arrays slightly incorrectly


From: Chet Ramey
Subject: Re: bash-3.1.1 parses arrays slightly incorrectly
Date: Tue, 27 Dec 2005 17:45:41 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051201)

Mike Frysinger wrote:
> On Saturday 24 December 2005 13:27, Chet Ramey wrote:
>> Mike Frysinger wrote:
>>> On Thu, Dec 22, 2005 at 09:24:06AM -0500, Chet Ramey wrote:
>>>> Bash-Release: 3.1
>>>> Patch-ID: bash31-001
>>>>
>>>> Bug-Description:
>>>>
>>>> There are parsing problems with compound assignments in several
>>>> contexts, including as arguments to builtins like `local', `eval', and
>>>> `let', and as multiple assignments in a single command.
>>> still seems to be a slight regression here with arrays ...
>> Try this:
> 
> maybe ... it fixed the setting of the array yes, but now i'm not sure if the 
> behavior i'm seeing is a regression or a bugfix ... here is a slightly 
> expanded test case from before:

It's a bug fix.  I'm sure it's the result of work to prevent builtins
like `local' and `declare' from double-expanding their arguments when
assigning to an array using the compound assignment syntax.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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