Re: Crash in hashlib.c

2009-04-18 Thread Chet Ramey
Bernd Eggink wrote: > Version: GNU bash, Version 4.0.17(1)-release (i686-pc-linux-gnu) > (plus newline-shellmeta patch). > > A script which uses, among other things, 3 associative arrays and a > coprocess, crashes reproducibly with an allocation error: > >malloc: hashlib.c:306: assertion botc

Re: passing arrays as parameters to functions

2009-04-18 Thread Chris F.A. Johnson
On Fri, 17 Apr 2009, sharkura wrote: I am looking for a way to pass an array variable as an argument to a function. The only remotely similar post I found dealt with spaces in arguments, which is not my problem. I want to pass three arguments to a function. I want to receive them as three po

Re: passing arrays as parameters to functions

2009-04-18 Thread Mike Frysinger
On Friday 17 April 2009 12:29:29 sharkura wrote: > I am looking for a way to pass an array variable as an argument to a > function. The only remotely similar post I found dealt with spaces in > arguments, which is not my problem. > > I want to pass three arguments to a function. I want to receive

passing arrays as parameters to functions

2009-04-18 Thread sharkura
I am looking for a way to pass an array variable as an argument to a function. The only remotely similar post I found dealt with spaces in arguments, which is not my problem. I want to pass three arguments to a function. I want to receive them as three positional parameters, $1 (an array), $2 (