Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What's the difference between export and setenv?

share|improve this question
up vote 11 down vote accepted

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.

share|improve this answer
Are we allowed to consider that bastard c-shell syntax from Berkeley "deprecated" yet? – msw Mar 5 '11 at 4:39
no: tcsh.org/Welcome – akira Mar 5 '11 at 6:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.