What's the difference between export and setenv?
Asked
Active
Viewed 1.7k times
1 Answers
18
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.
akira
- 1,058
- 6
- 13
-
1Are we allowed to consider that bastard c-shell syntax from Berkeley "deprecated" yet? – msw Mar 05 '11 at 04:39
-
1no: http://www.tcsh.org/Welcome – akira Mar 05 '11 at 06:19
-
1it's good to be aware that in bourne (unlike bash) you can't do `export VARIABLE=VALUE`. Instead you need to do ```VARIABLE=VALUE\n export VARIABLE ``` – Mike Vella Apr 04 '17 at 16:19