Site Tools



local <variable name>
local <variable name>,<variable name>
local <variable name> <value>
local -<variable name>
local <structure>.
local -dump


The local command creates local variables (as opposed to global variables). A local variable can be used until the end of the current atomic scope.

<varname>Create a local variable, initial value is the empty string.
<varname1,varname2>Declare multiple variables to be local variables
<varname> <value>Declare a local variable and give it an initial value
-<varname>Delete a local variable
<structure>.Declare all variables of the form <structure>.<var> to be local
-dumpRemove all local variables in the current atomic scope

Local variables are created implicitly by several commands which I should be listing here.


To give the local variable $blah a value of “this is a test”:

    local blah this is a test

To give both $blah and $foo a value:

    local blah,foo local vars are neat


The local command first appeared in EPIC4pre0.009. # $EPIC: local.txt,v 1.3 2006/08/01 04:07:08 sthalik Exp $

local.txt · Last modified: 2006/08/01 04:13 by