Curtis Vaughan
On 17 Nov, 2003, at 05:35, Martin Costabel wrote:
On lundi, nov 17, 2003, at 08:42 Europe/Paris, So UniQ wrote:
Depending on the shell you're using, you can add to the PATH definition in the
.cshrc, .kshrc, or .bashrc files (for CSH, KSH, or BASH respectively).
Under Bash and Ksh, the definition would be:
export PATH=$PATH:/sw/bin
and for CSH or TCSH
setenv PATH $PATH:/sw/bin
Hope this helps!!
No, it doesn't. Your information is at best partially correct. The right way to do this under bash or zsh or ksh is
source /sw/bin/init.sh
or
. /sw/bin/init.sh
and under tcsh or csh
source /sw/bin/init.csh
There are several reasons why your solution is not good:
1. /sw/bin needs to come before the other PATH components, not after
2. You need to include also /sw/sbin which is needed for some applications
3. Your command for [t]csh will give a syntax error
4. There are a couple of other environment variables besides PATH that need to be adapted.
--
Martin