prev
Shell Environment Variables
next
Shells allow you to put values in variables
Setting variables varies slightly based on the shell
bash:
%
VARIABLE=something
tcsh:
%
setenv VARIABLE something
Variables can be accessed using $VARIABLE; e.g.
%
setenv WORLD hello
%
echo $WORLD
hello