It is currently Tue, 17 May 2022 19:20:26 GMT



 
Author Message
 eval and $:
what is eval and $: ?

--
 [m [1;34m? ?:?Ei??aoo? bbs.yeskw.com?E[FROM: dns.hiperfect.com] [m



 Sun, 12 Oct 2003 01:01:26 GMT   
 eval and $:

"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.



 Sun, 12 Oct 2003 01:49:53 GMT   
 
   [ 2 post ] 

Similar Threads

1. To Eval or Not to Eval

2. eval not working in bash?

3. Mouse problems in SuSE 6.1 eval

4. Problem with dhclient 2.0 in SuSE 6.3 Eval

5. Traps & eval on Solaris

6. ? iAS product eval key

7. simple eval question

8. eval `tset -s dtterm`

9. the EVAL command

10. StarOffice 6.0 Eval for Linux


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software