Problem with sh/ksh quoting

q.p.liu qpliu at phoenix.princeton.edu
Fri Nov 2 12:54:29 AEST 1990


In article <4101 at awdprime.UUCP> tif at 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.



More information about the Comp.unix.shell mailing list