This was exactly what baffled me. 'which emacs' was replying /sw/bin/emacs that is looekd like I should have gotten the emacs21 installed by Fink. Instead what was running was always /usr/bin/emacs.

in the PATH /usr/bin was coming before /sw/bin . Fixing that (source init.sh in .bash_profile) rather than into .bashrc got the PATH right. I still do not have an answer on WHY which emacs was reporting /sw/bin/emacs.

I had this problem after moving from csh to bash. Is any bash expert able to explain the 'which' bug/feature?

Cheers

On Friday, November 22, 2002, at 06:37 PM, [EMAIL PROTECTED] wrote:

From: Hisashi T Fujinaka <[EMAIL PROTECTED]>
Date: Fri Nov 22, 2002  1:30:11 AM Europe/Zurich
Cc: [EMAIL PROTECTED]
Subject: Re: [Fink-users] emacs21 misbehavior


Can you do a "which emacs" to see which one is being called?

On Thu, 21 Nov 2002, Viktor Haag wrote:

Massimo Marino writes:
Viktor,

I checked the PATH and indeed you got it right. Now, shouldn't
this be taken care by init.sh ?
It should be. You can check to make sure that /sw/bin/init.sh
exists and does reset the PATH.

Then you should check that you don't re-reset the PATH *after*
init.sh gets called in your login sequence... (and check to make
sure that you're in fact sourcing /sw/bin/init.sh correctly in
your login sequence)...

On Thursday, November 21, 2002, at 10:52 PM, Viktor Haag wrote:
[snip]

--
Massimo Marino
NERSC Division - HPC Department
Lawrence Berkeley National Laboratory http://www.slac.stanford.edu/~marino
On leave at CERN, CH, EP Division, Atlas experiment
phone: (+41) 22 767-1288 fax: (+41) 22 767-8350 Office: 40-3-D16
alternate email: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to