👤
Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:
Select Section of Man Page:
Select Man Page Repository:

RedHat 9 (Linux i386) - man page for set (redhat section n)

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

_________________________________________________________________________________________________

NAME
       set - Read and write variables

SYNOPSIS
       set varName ?value?
_________________________________________________________________

DESCRIPTION
       Returns	the value of variable varName.	If value is specified, then set the value of var-
       Name to value, creating a new variable if one doesn't already exist, and return its value.
       If  varName contains an open parenthesis and ends with a close parenthesis, then it refers
       to an array element:  the characters before the first open parenthesis are the name of the
       array,  and the characters between the parentheses are the index within the array.  Other-
       wise varName refers to a scalar variable.  Normally,  varName  is  unqualified  (does  not
       include the names of any containing namespaces), and the variable of that name in the cur-
       rent namespace is read or written.  If varName includes namespace qualifiers (in the array
       name if it refers to an array element), the variable in the specified namespace is read or
       written.

       If no procedure is active, then varName refers to a namespace variable (global variable if
       the  current  namespace	is the global namespace).  If a procedure is active, then varName
       refers to a parameter or local variable of the procedure unless	the  global  command  was
       invoked	to  declare  varName  to  be  global, or unless a variable command was invoked to
       declare varName to be a namespace variable.

SEE ALSO
       expr(n), proc(n), trace(n), unset(n)

KEYWORDS
       read, write, variable

Tcl											   set(n)


All times are GMT -4. The time now is 11:21 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password