Nice tutorial! The csh parts needs some work, though.
Excerpts from linux-config: 17-Oct-98 Unix Tutorial: shell variab.. Dr.
R. J. [EMAIL PROTECTED] (6426)
> Note: csh, a popular shell, is the exception that exports all variables by
default.
[snip]
> In csh, shell variables are set using 'set <name> = <value>' and are
> exported by default.
[snip]
> In Borne shell, Korn shell, Bash, and csh, shell variables are destroyed
> by exiting the shell or by using 'unset <name>'.
These are not quite right. The csh does not export all variables by default.
In csh, there are shell variables and environment variables. Shell
variables are set with the
set varname = value
or
@ numeric_var = numeric_value
syntax, and are not exported to child shells. Environment variables are
set using the 'setenv' command:
setenv varname value
Note, there is no '=' character in this assignment. Environment
variables, unlike shell variables, *are* automatically exported to child
shells automatically, ala bash/sh/ksh's export command.
To unset shell variables, unset works fine. To clear environment
variables, the unsetenv command is used.
HTH.
-blair
___ _ Blair Wyman IBM Rochester
( /_) / _ ' _ (507)253-2891 [EMAIL PROTECTED]
__/__)_/_<_/_/_/_' Opinions expressed may not be those of IBM.