Path: utzoo!attcan!uunet!decwrl!ucbvax!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.unix.wizards Subject: Re: nested loops Message-ID: <1990Aug13.180721.8631@iwarp.intel.com> Date: 13 Aug 90 18:07:21 GMT References: <4103@herbie.misemi> <1990Aug12.030137.19989@uncle.uucp> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Distribution: na Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 17 In-Reply-To: donlash@uncle.uucp (Donald Lashomb) In article <1990Aug12.030137.19989@uncle.uucp>, donlash@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@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/