[maemo-developers] implementation of 2-dimensional array in bash - kind request
From: William Gordon Rutherdale will.rutherdale at utoronto.caDate: Sun Jul 6 15:42:08 EEST 2008
- Previous message: implementation of 2-dimensional array in bash - kind request
- Next message: implementation of 2-dimensional array in bash - kind request
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
C is a good solution. So is Perl, which comes on OS 2008. So is Python. Perl lets you construct nested lists, which gives you the equivalent in capability to multi-dimensional arrays. Python gives similar constructs. There is no reason IMHO to be writing shell scripts of any kind on a system where Perl and Python are available. Shell programming is just weak for many reasons including lack of data structure capabilities and should be avoided whenever possible. I say this as someone who has accumulated years of shell programming experience in a professional software shop as well as other languages. The strongest of the shell programming languages, namely bash and ksh, have this problem. Perl and Python are practical for exactly the reason that they are good replacements for these shell languages. -Will Kees Jongenburger wrote: > Hello Darius, > > On Sat, Jul 5, 2008 at 7:54 PM, Darius Jack <dariusjack2006 at yahoo.ie> wrote: > >> and have 2D array inmterpreted as one row. >> so calculating >> array2D ( ) i-th j-th element >> as i + (j-1) x row length >> >> > I agree with Igor what using bash or even better a POSIX shell would > be a little > insane. Still Dave Taylor have a serries on linuxjounral about shell > programming (creating a card game/arrat manipulation) > > see http://www.linuxjournal.com/article/8704 I think you might find it useful. > > > greetings, > > > P.S. can you stop sending the "Send instant messages to your online > friends http://uk.messenger.yahoo.com" in every and each mail? > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > >
- Previous message: implementation of 2-dimensional array in bash - kind request
- Next message: implementation of 2-dimensional array in bash - kind request
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]