Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!n8emr!uncle!donlash From: donlash@uncle.uucp (Donald Lashomb) Newsgroups: comp.unix.wizards Subject: Re: nested loops Message-ID: <1990Aug12.030137.19989@uncle.uucp> Date: 12 Aug 90 03:01:37 GMT References: <4103@herbie.misemi> Reply-To: donlash@uncle.UUCP (Donald Lashomb) Distribution: na Organization: U.N.C.L.E. Lines: 16 In article <4103@herbie.misemi> adley@herbie.misemi ( iccad) writes: =[...] =The problem lies in the $`echo $i` statment =the `echo $i` preforms as expected and the result is one of this, =that, or them =the $ infront of this statment however is taken as a literal $ =and does not return the value of the variable this or that or them =instead it returns $this or $that or $them. =[...] 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. -Don