Take the 2-minute tour ×
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.

What's the difference between export and setenv?

share|improve this question

1 Answer 1

up vote 8 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
1  
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

 
discard

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.