eval man page on QNX

Man page or keyword search:  
man Server   4347 pages
apropos Keyword Search (all sections)
Output format
QNX logo
[printable version]

eval(n)			     Tcl Built-In Commands		       eval(n)

______________________________________________________________________________

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  arguments
       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  fur‐
       ther 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(n), concat(n), error(n), list(n), subst(n), tclvars(n)

Tcl								       eval(n)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server QNX

List of man pages available for QNX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net