[18687] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: Bash init files suggestion

daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Jan 24 19:59:55 2001

Message-Id: <200101250059.TAA17359@egyptian-gods.MIT.EDU>
To: Stephen Gildea <gildea@MIT.EDU>
Cc: bugs@MIT.EDU
In-Reply-To: Your message of "Wed, 24 Jan 2001 18:07:56 EST."
             <200101242307.SAA17224@mass-toolpike.mit.edu> 
Date: Wed, 24 Jan 2001 19:59:50 -0500
From: Greg Hudson <ghudson@MIT.EDU>

> It appears I can do the same thing with .bash_login, using my usual
> file but renaming it to .bash_environment.  This works fine, but it
> might be clearer if you let me name it .bash_login.mine instead.

Actually, the dotfile you want is .startup.tty, a la tcsh.  (Although
it's kind of a mess; .startup.tty is interpreted using bash or tcsh,
whichever shell you log in with, but .startup.X is always interpreted
by tcsh.  We haven't really looked into fixing this mess.)

We don't really want multiple names for the same dotfile, so we won't
have .bash_login.mine (just as we don't have .cshrc.mine).

> I think this is a bug in the translation from csh and that the first
> test should have an uppercase TERM: "${TERM+set}".

I think you're right about this.  I'll fix it for (if nothing else)
the next full release.

> (Or, more readably, [ ! "$TERM" ].)

This form of test won't work for all values of $TERM (such as "-e").

> There are a number of variable references in
> /usr/athena/lib/init/bashrc that fail to have double quotes around
> them.  One of them is giving me problems:

I'm not sure why COREDUMPSIZE isn't set, but I'll make it more robust.

> Finally, athena_manpath isn't set, as it is with tcsh.

athena_path and athena_manpath are deprecated (in fact, we unset
athena_path in bashrc after .environment runs) and are only set in the
tcsh dotfiles for compatibility.

> Thanks again for adding Bash support.  I hope someday Bash will be
> the default shell on Athena.

Seems unlikely at the moment.  The transition would be too hard.

home help back first fref pref prev next nref lref last post