Unix and Linux Discussions Tagged with eval |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
8 |
32,486 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
810 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,551 |
What is on Your Mind? |
|
|
|
14 |
4,673 |
Shell Programming and Scripting |
|
|
|
0 |
1,296 |
Shell Programming and Scripting |
|
|
|
3 |
2,082 |
Shell Programming and Scripting |
|
|
|
2 |
7,973 |
Shell Programming and Scripting |
|
|
|
2 |
5,710 |
UNIX Desktop Questions & Answers |
|
|
|
3 |
1,286 |
Shell Programming and Scripting |
|
|
|
2 |
1,771 |
Shell Programming and Scripting |
|
|
|
10 |
3,226 |
Shell Programming and Scripting |
|
|
|
6 |
2,925 |
Shell Programming and Scripting |
|
|
|
14 |
19,023 |
Shell Programming and Scripting |
|
|
|
1 |
4,757 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
3 |
3,835 |
Shell Programming and Scripting |
|
|
|
2 |
2,948 |
Shell Programming and Scripting |
|
|
|
10 |
10,952 |
UNIX for Advanced & Expert Users |
|
|
|
10 |
175,734 |
Shell Programming and Scripting |
|
|
|
3 |
16,341 |
Shell Programming and Scripting |
|
|
|
5 |
38,140 |
Shell Programming and Scripting |
|
|
|
0 |
1,257 |
Software Releases - RSS News |
|
|
|
1 |
1,862 |
Shell Programming and Scripting |
|
|
|
3 |
15,319 |
Shell Programming and Scripting |
|
|
|
1 |
3,511 |
Shell Programming and Scripting |
|
|
|
6 |
12,249 |
Shell Programming and Scripting |
|
|
|
0 |
984 |
Software Releases - RSS News |
|
|
|
0 |
940 |
Software Releases - RSS News |
|
|
|
0 |
848 |
Software Releases - RSS News |
|
|
|
3 |
4,704 |
HP-UX |
|
|
|
4 |
13,050 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,963 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,970 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
6,869 |
Shell Programming and Scripting |
|
|
|
3 |
200,287 |
Shell Programming and Scripting |
|
|
|
5 |
17,064 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
22,285 |
Shell Programming and Scripting |
|
|
|
4 |
3,971 |
Shell Programming and Scripting |
|
|
|
1 |
7,704 |
Shell Programming and Scripting |
|
|
|
1 |
4,375 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
13,950 |
UNIX for Advanced & Expert Users |
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)