On Monday 21 March 2005 14:09, Longman, Bill wrote:

> From your shell prompt, you can see what your current environment (for your
> [probably] bash shell) looks like with the "set" command.

"set" show all shell variables (and shell functions) not just environment 
variables.  "env" just show environment variables.

> One thing the shell allows you to do is limit which environment variables
> get "exported" to subprocesses. (Subprocesses are any external commands
> i.e., not shell builtins, you run from the command line.) Use the "env"
> command to see which ones they are. You should notice that the list of
> environment variables returned from the "env" command are fewer than the
> number of variables listed from the "set" command.
>
> By default, environment variables in the shell are local variables. You
> have to manually export them if you want subshells to know about them.

An exported shell variable /is/ an environment variable.
_______________________________________________
yellowdog-general mailing list
[email protected]
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
HINT: to Google archives, try  '<keywords> site:terrasoftsolutions.com'

Reply via email to