"Eval" executes its arguments as a shell command. It's useful if the
script needs to construct a command to be executed. For instance:
varname=`cat filename`
eval echo '$'$varname
This script gets the name of a variable from a file, and then displays the
value of that variable by constructing an echo command and evaluating it.
I looked in the ksh and bash man pages and couldn't find any mention of
'$:'. Where did you see this?
--
Barry Margolin, bar...@genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.