Quote:
Originally Posted by BrianK
if I run "env", can I expect the same result regardless of tcsh, csh, bash, ksh, etc?
I've tested a few & it seems to be the same. Is that definitely the case?
I'm seeing:
variable=value1:value2:value3
|
env is external program not, shell internal command, so you can expect
more or less same result.
But:
1) Different shells may define different additional env variable, so output can be slightly different.
2) None of the shell you listed has env built-in, but it's possible to write one, that will have, and will behave differently.
For example there is program nice and tcsh has built-in nice with different syntax