Le samedi, 2 nov 2002, � 01:35 Europe/Paris, Ben Hines a �crit :
On Friday, November 1, 2002, at 02:30 AM, Manuel Bardi�s wrote:Sorry for that...
Don't worry, this is a well known problem.
I don't know how to explain it (maybe I'll say stupid things) but when you source several files from your .tcshrc, the source /sw/bin/init.csh is forgotten.
You can see that by typing setenv, where you'll notice that the path variable doesn't have the fink path.
No, no, no.
The problem was that he did "echo "source /usr/share/tcsh/examples/rc" > ~/.tcshrc"
Note the ">". That overwrites the entire file.
He needed to use ">>" to append to the file, like:
source /usr/share/tcsh/examples/rc" >> ~/.tcshrc
Besides the facts that you have to add "source ~/.cshrc" to your .tcshrc, and fix the bug in /usr/share/tcsh/examples/aliases you've been told about, there is the lesser-known problem that the file /usr/share/tcsh/examples/login says:
set path = ( \
~/bin \
/usr/local/bin /usr/bin /bin \
/usr/local/sbin /usr/sbin /sbin \
)
which has the unhappy effect of removing /sw/bin, /sw/sbin, and /usr/X11R6/bin from your path. Since .login is sourced after .tcshrc, this is a real problem. The solution is to either "rm ~/.login" or manually add the paths. This file also stomps on $MANPATH.
This was my problem, and therefore that's why I removed .login and .logout, and did the install I did...
Things start to clear a little, at least in my head :)
