Re: Bash trivia question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, using arrays makes perfect sense in the particular example I had given.
But that example was only for the sake of expressing the problem.

In the actual place I was stuck, there wasn't any arrity on numeric index.
The iterator isnt numeric there, it is an array of strings.

So I can't have them as STRING[n] where n is a number.  Although I can have
them as STRING[str] where str is a string.

But this is illegal in bash I suppose.

Regards,
irc


----- Original Message -----
From: "Tim Waugh" <twaugh@redhat.com>
To: <psyche-list@redhat.com>
Sent: Monday, 11 November, 2002 19:01
Subject: Re: Bash trivia question

On Mon, Nov 11, 2002 at 06:41:13PM +0530, irc wrote:

> However, I couldn't figure out what could have been the problem in having
it
> this way ${STRING_${i}}, that is recursively handle ${${${...}}}

Is there some reason you aren't using bash array variables?

Tim.
*/






-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux