Re: Any chance of multi-dimensional arrays?

2012-11-26 Thread Rene Herman
On 11/26/2012 11:27 PM, Chet Ramey wrote: I know that bash arrays are 1 dimensional -- but are there any plans for providing multi-dimensional arrays? I don't have any current plans to do so. I would take a look at any contributed code to add them, though. Thanks for the reply. It

Re: Any chance of multi-dimensional arrays?

2012-11-26 Thread Chet Ramey
On 11/25/12 12:33 AM, Rene Herman wrote: > Good day. > > I know that bash arrays are 1 dimensional -- but are there any plans for > providing multi-dimensional arrays? I don't have any current plans to do so. I would take a look at any contributed code to add them, though. Che

Re: Any chance of multi-dimensional arrays?

2012-11-26 Thread Greg Wooledge
On Sun, Nov 25, 2012 at 06:33:19AM +0100, Rene Herman wrote: > I'm currently writing a larger bash script to manage my (ogg vorbis) > music collection, including maintaining tags. Vorbis files can and > (mine) often will contain repeated tags such as, say, "artist=David > Crosby" and "artist=Gra

Re: Any chance of multi-dimensional arrays?

2012-11-26 Thread Aharon Robbins
In article , Eduardo Bustamante wrote: >There are a lot of general purpose languages (not shell languages), that >support multi-dimensional arrays. And these languages can call external >tools just fine. Python, Perl, Ruby, ... pick one. Even Awk has faked >support for multi-dimens

Re: Any chance of multi-dimensional arrays?

2012-11-25 Thread Rene Herman
On 11/26/2012 06:51 AM, Eduardo Bustamante wrote: Hey, calm down. People are just trying to help. Also, this question has already been asked previously. Please read this: http://lists.gnu.org/archive/html/bug-bash/2011-09/msg00062.html (To put you in context, Chet Ramey is the current maintain

Re: Any chance of multi-dimensional arrays?

2012-11-25 Thread Eduardo Bustamante
ature. Bash is already doing too much for a *shell* language (yes, note that a shell language isn't the same as a scripting language). There are a lot of general purpose languages (not shell languages), that support multi-dimensional arrays. And these languages can call external tools just fi

Re: Any chance of multi-dimensional arrays?

2012-11-25 Thread Rene Herman
On 11/25/2012 08:54 PM, Bob Proulx wrote: There are various naming conventions and schemes to simulate multi-dimensional arrays using single dimension arrays. Since you want to continue with the shell and the shell has not (yet) provided multi-dimensional arrays then the only option for you is

Re: Any chance of multi-dimensional arrays?

2012-11-25 Thread Steven W. Orr
On 11/25/12 14:54, quoth Bob Proulx: Rene Herman wrote: All I want additionally is multi-dimensional arrays... There are various naming conventions and schemes to simulate multi-dimensional arrays using single dimension arrays. Since you want to continue with the shell and the shell has not

Re: Any chance of multi-dimensional arrays?

2012-11-25 Thread Bob Proulx
Rene Herman wrote: > All I want additionally is multi-dimensional arrays... There are various naming conventions and schemes to simulate multi-dimensional arrays using single dimension arrays. Since you want to continue with the shell and the shell has not (yet) provided multi-dimensional arr

Re: Any chance of multi-dimensional arrays?

2012-11-25 Thread Rene Herman
not in fact be any faster. All I want additionally is multi-dimensional arrays... Kind regards, Rene

Re: Any chance of multi-dimensional arrays?

2012-11-25 Thread Dennis Williamson
On Nov 25, 2012 1:37 AM, "Rene Herman" wrote: > > Good day. > > I know that bash arrays are 1 dimensional -- but are there any plans for providing multi-dimensional arrays? > > I'm currently writing a larger bash script to manage my (ogg vorbis) music colle

Any chance of multi-dimensional arrays?

2012-11-24 Thread Rene Herman
Good day. I know that bash arrays are 1 dimensional -- but are there any plans for providing multi-dimensional arrays? I'm currently writing a larger bash script to manage my (ogg vorbis) music collection, including maintaining tags. Vorbis files can and (mine) often will contain rep

Re: multi-dimensional arrays

2011-09-19 Thread Greg Wooledge
> > I don't have any current plans to add multi-dimensional arrays. How > would you use them? Maybe there's a way to do that in the meantime. The normal workaround is to use an associative array with keys such as "110,42". In the case of numeric indices like these, i

Re: multi-dimensional arrays

2011-09-17 Thread Chet Ramey
On 9/17/11 10:26 AM, Gerard Seibert wrote: > Just out of curiosity, are there any plans to make multi-dimensional > array variables available in future versions of Bash? I would find it > extremely useful. I don't have any current plans to add multi-dimensional arrays. How woul

multi-dimensional arrays

2011-09-17 Thread Gerard Seibert
Just out of curiosity, are there any plans to make multi-dimensional array variables available in future versions of Bash? I would find it extremely useful. -- Gerard ✌ ger...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To heade