Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

@(1csh)

alias(1csh)

bg(1csh)

break(1csh)

cd(1csh)

chdir(1csh)

continue(1csh)

csh(1csh)

dirs(1csh)

echo(1csh)

eval(1csh)

exec(1csh)

exit(1csh)

export(1sh)

fg(1csh)

glob(1csh)

goto(1csh)

hashstat(1csh)

SETENV(1CSH)

history(1csh)

jobs(1csh)

kill(1csh)

limit(1csh)

logout(1csh)

nice(1csh)

nohup(1csh)

notify(1csh)

onintr(1csh)

popd(1csh)

printenv(1)

pushd(1csh)

rehash(1csh)

repeat(1csh)

set(1csh)

set(1sh)

sh(1sh)

shift(1csh)

source(1csh)

stop(1csh)

suspend(1csh)

time(1csh)

umask(1csh)

unhash(1csh)

unalias(1csh)

unlimit(1csh)

unset(1csh)

unsetenv(1csh)

wait(1csh)

which(1csh)

getenv(3c)

environ(7)



SETENV(1CSH)            COMMAND REFERENCE            SETENV(1CSH)



NAME
     setenv, unsetenv - change environment variables (csh built-
     in)

SYNOPSIS
     setenv name value
     unsetenv pattern

DESCRIPTION
     Environment variables, unlike shell variables, are passed to
     all child processes in the ``environment'' (see environ(7)).

     The command setenv sets the environment variable name to the
     given value, which must be a single word.

     The command unsetenv removes all environment variables whose
     name matches pattern, which may contain any metacharacters
     normally used in filename expansion.  This deletes the names
     from the environment for all child processes, leaving the
     parent processes unaffected.

     Setting the variable PATH results in the shell variable path
     being set similarly.  See set(1csh) for more information.

EXAMPLES
     The following command sets the environment variable PATH to
     the value `:/bin:/etc:/usr/bin'.  Note that this causes the
     shell variable path to be set to `( . /bin /etc /usr/bin )'.

          setenv PATH :/bin:/etc:/usr/bin

RETURN VALUE
     [NO_ERRS]      Command completed without error.

     [1]            An error of the type described in the message
                    occurred.

CAVEATS
     Shell variables take precedence over environment variables.
     This means that setting the environment variable `prompt' to
     `foo' does not change the prompt for the current or
     subsequent shells, and that the value of `$prompt' is not
     `foo' in a subsequent invocation of csh.

     There is no way for a child to change the environment of the
     parent.

SEE ALSO
     @(1csh), alias(1csh), bg(1csh), break(1csh), cd(1csh),
     chdir(1csh), continue(1csh), csh(1csh), dirs(1csh),
     echo(1csh), eval(1csh), exec(1csh), exit(1csh), export(1sh),
     fg(1csh), glob(1csh), goto(1csh), hashstat(1csh),



Printed 4/6/89                                                  1





SETENV(1CSH)            COMMAND REFERENCE            SETENV(1CSH)



     history(1csh), jobs(1csh), kill(1csh), limit(1csh),
     logout(1csh), nice(1csh), nohup(1csh), notify(1csh),
     onintr(1csh), popd(1csh), printenv(1), pushd(1csh),
     rehash(1csh), repeat(1csh), set(1csh), set(1sh), sh(1sh),
     shift(1csh), source(1csh), stop(1csh), suspend(1csh),
     time(1csh), umask(1csh), unhash(1csh), unalias(1csh),
     unlimit(1csh), unset(1csh), unsetenv(1csh), wait(1csh),
     which(1csh), getenv(3c), and environ(7).















































Printed 4/6/89                                                  2



%%index%%
na:360,150;
sy:510,307;
de:817,1003;
ex:1820,337;
rv:2157,274;
ca:2431,496;
se:2927,609;3968,1080;
%%index%%000000000132

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026