opensolaris man page for eval

Query: eval

OS: opensolaris

Section: 1t

Links: opensolaris man pages   all man pages

Forums: unix linux community   forum categories

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

eval(1T)						       Tcl Built-In Commands							  eval(1T)

__________________________________________________________________________________________________________________________________________________

NAME
eval - Evaluate a Tcl script
SYNOPSIS
eval arg ?arg ...? _________________________________________________________________
DESCRIPTION
Eval takes one or more arguments, which together comprise a Tcl script containing one or more commands. Eval concatenates all its argu- ments in the same fashion as the concat command, passes the concatenated string to the Tcl interpreter recursively, and returns the result of that evaluation (or any error generated by it). Note that the list command quotes sequences of words in such a way that they are not further expanded by the eval command.
EXAMPLE
This procedure acts in a way that is analogous to the lappend command, except it inserts the argument values at the start of the list in the variable: proc lprepend {varName args} { upvar 1 $varName var # Ensure that the variable exists and contains a list lappend var # Now we insert all the arguments in one go set var [eval [list linsert $var 0] $args] }
KEYWORDS
concatenate, evaluate, script
SEE ALSO
catch(1T), concat(1T), error(1T), list(1T), subst(1T), tclvars(1T)
ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTcl | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+
NOTES
Source for Tcl is available on http://opensolaris.org. Tcl eval(1T)
Related Man Pages
catch(1t) - opensolaris
lrange(1t) - opensolaris
proc(1t) - opensolaris
eval(n) - mojave
eval(n) - suse
Similar Topics in the Unix Linux Community
adding time
Set vars (by reference) in function
namerefs alternative for KSH88
Eval
Updating a variable within a variable