OLSETVAR(1) OPEN LOOK 4 OLSETVAR(1)
NAME
olsetvar - sets a shell variable to a value in the user's $HOME/.olsetup
file.
SYNOPSIS
olsetvar - variable value [user]
DESCRIPTION
The olsetvar program edits the file ~user/.olsetup (~user refers to the
home directory of the user user) to add a shell assignment statement with
the variable variable to the value value. The variable is exported as
well so that programs that shell .olsetup will have these new variables
set in their respective environments. If a user is not specified through
user, $HOME is the home directory used. This command is used by the OPEN
LOOK workspace manager to assign the variable OLINVOKE a value and it is
used by the command oladduser to set up other variables.
If the name of the login ID is not the same as the $HOME variable, the
user should invoke olsetvar with the login ID on the command line.
olsetvar will ensure that no duplicate entries of variable assignments
are made. If a value already exists for the specified variable, olsetvar
will reset this value to the new value. olsetvar will write an error
message on standard error and exit if the ~user/.olsetup does not exist,
if the user does not exist, or if write permissions are not granted on
the user's ~user/.olsetup file.
EXAMPLES
olsetvar OLINVOKE yes usera
olsetvar PATH '$PATH:/usr/X/bin'
FILES
$HOME/.olsetup
SEE ALSO
oladduser(1), olunsetvar(1)
10/89 Page 1