Re: How to change shell valluables
Re: How to change shell valluables
- Subject: Re: How to change shell valluables
- From: Martin Costabel <email@hidden>
- Date: Tue, 28 Dec 2004 09:21:04 +0100
和城 光弘 wrote:
Hello.
It's mac and unix begginner.
prompt: > set PATH=$PATH:/usr/local/bin
or
prompt: > set path=( ~/bin /usr/local/bin /usr/bin )
You first have to know which shell you are using. The "set A=B" syntax
works in tcsh, but it does not work in bash. You are probably using
bash. In bash, the corresponding syntax is "A=B".
In addition, PATH is an environment variable, so in bash you must export
its value:
PATH=$PATH:/usr/local/bin
export PATH
The same result can be obtained in one line:
export PATH=$PATH:/usr/local/bin
Look at the file /etc/profile for a model.
--
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden