Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!wuarchive!emory!gatech!udel!princeton!idunno!qpliu From: qpliu@phoenix.princeton.edu (q.p.liu) Newsgroups: comp.unix.shell Subject: Re: Problem with sh/ksh quoting Message-ID: Date: 2 Nov 90 01:54:29 GMT References: <16289@s.ms.uky.edu> <3726@idunno.Princeton.EDU> <4101@awdprime.UUCP> Sender: news@idunno.Princeton.EDU Reply-To: qpliu@phoenix.princeton.edu Distribution: na Organization: Princeton University Lines: 19 In-reply-to: tif@doorstop.austin.ibm.com's message of 1 Nov 90 16:02:46 GMT In article <4101@awdprime.UUCP> tif@doorstop.austin.ibm.com (Paul Chamberlain) writes: > >I couldn't figure out how to get eval to work like this: > > eval for word in $line > ... > you hafta do this: eval "for word in $line; do echo \$word; done" works for bash and sh, don't have a ksh to try it on. >I'm gonna start calling myself "The Shell Answer-man". -- Don't reply to the address in the From field, it may be wrong. Don't reply to the address in the Reply-to field, it may be wrong. Don't reply to the address in the .sig, it may be wrong.