Friday, January 28, 2000, 11:05:27 AM, you wrote:
AT> you guys are awesome... thanks for the responses everyone....
AT> ....so
AT> export
AT> in linux is analogous to
AT> set
AT> in dos?...
AT> if it's more complicated than that just let me know and i'll go to the
AT> docs.
when you use 'export', you mean you want the shell's child processes
have the same environment variable value. without 'export', the
environment variable is just local to the shell.
And an important difference between dos and unix is: environment in
dos are global to all processes in system, that is you set a env var
in one dos prompt, your another dos prompt get the same env var.
This is not the case in linux.
Here you must know 'export' is bourne shell's( sh, bash, ksh, etc)
semantic, for csh you use 'setenv'
old sh: $ variable=value
$ export variable
bash: $ export variable=value
csh: $ setenv variable value
You can look at /etc/profile , /etc/bashrc, /etc/csh.cshrc for examples.
Also, you can 'man sh' for variable 'PS1' , 'man tcsh' for 'prompt'
--
lark