Re: Any chance of multi-dimensional arrays?

2012-11-26 Thread Aharon Robbins
In article mailman.13825.1353909089.855.bug-b...@gnu.org, Eduardo Bustamante dual...@gmail.com 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.

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=Graham

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. Chet -- ``The lyf so

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's fairly

Re: Any chance of multi-dimensional arrays?

2012-11-25 Thread Dennis Williamson
On Nov 25, 2012 1:37 AM, Rene Herman rene.her...@gmail.com 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 collection, including

Re: Any chance of multi-dimensional arrays?

2012-11-25 Thread Rene Herman
On 11/25/2012 03:19 PM, Dennis Williamson wrote: Why don't you write it in Python? It will be much easier. You can use advanced data structures and can even store your data in a database such as MySQL. Execution will be much faster, too. It won't be. Firstly since I'm not all that familiar

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 arrays

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 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 Eduardo Bustamante
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 maintainer of bash). It's not really an important feature.

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

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 repeated