On Thu, 2008-01-31 at 00:44 +0530, Puneet Lakhina wrote: > On Jan 30, 2008 3:44 PM, Gora Mohanty <[EMAIL PROTECTED]> wrote: [...] > 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?
It has to do with the order of evaluation. 'eval' first concatenates all tokens, and then evaluates the expression. Here is what is probably the canonical example of the use of eval: num=10 x=foo Now, note the difference between, y='$'$x echo $y and, eval y='$'$x echo $y [...] > 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. :) [...] http://docs.python.org, "man perlintro", "man perltoc". Regards, Gora P.S. By the way, AIX is UNIX on crack. _______________________________________________ ilugd mailinglist -- ilugd@lists.linux-delhi.org 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/ilugd@lists.linux-delhi.org/