[27100] in Athena Bugs
Re: linux 9.4.40: cshrc
daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue Aug 14 20:17:26 2007
From: Greg Hudson <ghudson@mit.edu>
To: Joe Foley <foley@mit.edu>
In-Reply-To: <200708141853.l7EIr7vS012506@omaha.mit.edu>
Content-Type: text/plain
Date: Tue, 14 Aug 2007 20:17:08 -0400
Message-Id: <1187137028.6304.25.camel@error-messages.mit.edu>
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Spam-Flag: NO
X-Spam-Score: 0.00
Cc: bugs@mit.edu
Errors-To: bugs-bounces@mit.edu
Hm. It's not that simple; $HOME will always have already been set.
The goal of that bit of code is to change HOME from /mit/foley
to /afs/athena.mit.edu/user/f/o/foley, which in turn makes a few
applications behave a bit more nicely (e.g. emacs will display filenames
in your homedir as ~/filename instead of using the full path).
That bit of code is only supposed to be run once, during session
initialization and not once per terminal. Perhaps there's been an
unintended consequence of some change and that's not true any more.
We dealt with a similar issue in bashrc (which has always had a known
issue that it gets run once per terminal), and solved it by setting $x
to `(cd && /bin/pwd)` rather than just `/bin/pwd`. I'll probably do the
same thing for cshrc.