What's the difference between export
and setenv
?
1 Answer
there is none but:
setenv
is the name of the command in the *csh family of shells
export
is the name of the command in the "other" family of shells (ash, bourne, bourne again, zsh)
and, ok, the syntax is slightly different. but other than that? none.
-
1Are we allowed to consider that bastard c-shell syntax from Berkeley "deprecated" yet?– mswMar 5, 2011 at 4:39
-
1
-
1it's good to be aware that in bourne (unlike bash) you can't do
export VARIABLE=VALUE
. Instead you need to doVARIABLE=VALUE\n export VARIABLE
Apr 4, 2017 at 16:19