On Jan 30, 2008 3:44 PM, Gora Mohanty <[EMAIL PROTECTED]> wrote:
> On Wed, 2008-01-30 at 15:36 +0530, Puneet Lakhina wrote:
> [...]
> > However
> > $> TESTARR=(`echo \"abc def\" ghi`)
> > $> echo ${TESTARR[0]}
> > $> echo ${TESTARR[1]}
> > This incorrectly prints:
> > "abc
> > def"
> [...]
>
> What you want is probably
> eval TESTARR=(`echo \"abc def\" ghi`)
>
Thanks this works. But how exactly does it work? I mean how does eval change
whats assigned to TESTARR?
> I would also suggest moving to a better scripting
> language like Python or Perl.
>
Have been thinking of the same thing and trying to push the idea upstairs.
Lets see when I get to type python on the AIX machine that I do this
scripting on. :)
> Regards,
> Gora
>
>
> _______________________________________________
> ilugd mailinglist -- [email protected]
> http://frodo.hserus.net/mailman/listinfo/ilugd
> Next Event: http://freed.in - February 22/23, 2008
> Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
> http://www.mail-archive.com/[email protected]/
>
--
Puneet
http://sahyog.blogspot.com/
Latest Post: Tutorial on SVN setup and usage
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[email protected]/