[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Difference between assignment via nameref vs `printf -v`?
From: |
Chet Ramey |
Subject: |
Re: Difference between assignment via nameref vs `printf -v`? |
Date: |
Tue, 02 Sep 2014 09:49:14 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 9/1/14, 10:16 PM, lolilolicon wrote:
> On Tue, Sep 2, 2014 at 9:02 AM, Chet Ramey <chet.ramey@case.edu> wrote:
>> It's a bug that results in `arr[0]' being created as a shell variable.
>> I've attached a patch for people who want to experiment with it.
>
> I applied it against 4.3.24 but it failed to build... Am I missing some
> patch in between?
>
> variables.c:2560:15: error: too many arguments to function
> ‘make_new_array_variable’
> entry = make_new_array_variable (newname, table); /* indexed
> array by default */
You can just take the `table' argument out and it should work for your
test case. It's just as well that patch didn't work right, though, since
I'm looking at other issues with it.
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/