Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Setenv command in terminal.

Hello,

I'm using the unix "setenv" command in Terminal. But I keep getting the message: -bash: setenv: command not found

Can anyone tell me what's wrong? Thought 'setenv' was a standard unix command.

13" Macbook Pro, Mac OS X (10.5.8)

Posted on Sep 15, 2010 1:13 PM

Reply
2 replies

Sep 15, 2010 1:38 PM in response to roberto

First this question is better asked in the Mac OS X Technologies > Unix Forum
<http://discussions.apple.com/forum.jspa?forumID=735>

'setenv' is a csh/tcsh shell built-in command.

The default Mac OS X shell is 'bash' which sets environment variables using

export VARIABLE_NAME="new value for the variable"

If you are just following some instructions you read somewhere, then either see if there is a bourne shell version (sh, bash, ksh, zsh, ...). Or translate the csh/tcsh specific commands to bourne shell varieties.

If you are a long time csh/tcsh user and want to use that shell, then try using the

chsh

command.

Setenv command in terminal.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.