nested loops

Randal Schwartz merlyn at iwarp.intel.com
Tue Aug 14 04:07:21 AEST 1990


In article <1990Aug12.030137.19989 at uncle.uucp>, donlash at uncle (Donald Lashomb) writes:
| Try using an eval like this:  eval $`echo $i`
| eval causes the shell to "double-scan" the line,
| thereby picking up and evaluating the ${this/that/whatever}
| as a variable.

Please don't use `echo $i`, as it is equivalent to $i for all plain
values of $i, and forks an extra process or two on BourneShellClassic.
As I said in an earlier post, eval echo \$$i does pretty much what you
wanted in this case.

Just another Bourne Shell hacker,
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
| merlyn at iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/



More information about the Comp.unix.wizards mailing list