🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1694

Re: Problem with sh/ksh quoting

#1694
From: q.p.liu
Date: Fri, 02 Nov 1990 01:54
19 lines
1219 bytes
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.
Technical Details
Message-ID: <QPLIU.90Nov1205429@phoenix.princeton.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!wuarchive!emory!gatech!udel!princeton!idunno!qpliu
References: <16289@s.ms.uky.edu> <3726@idunno.Princeton.EDU> <4101@awdprime.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <QPLIU.90Nov1205429@phoenix.princeton.edu>
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