[18685] in Athena Bugs
Bash init files suggestion
daemon@ATHENA.MIT.EDU (Stephen Gildea)
Wed Jan 24 18:08:01 2001
Message-Id: <200101242307.SAA17224@mass-toolpike.mit.edu>
To: bugs@MIT.EDU
Cc: gildea@MIT.EDU
Date: Wed, 24 Jan 2001 18:07:56 -0500
From: Stephen Gildea <gildea@MIT.EDU>
I'm finally taking the plunge and trying out the support on Athena 8.4.10
for Bash as a login shell. (I prefer Bash because its syntax is richer
and is the Unix standard; thank you for supporting it.) I understand
this support is still labelled as experimental. Mostly it is working
great, but I'd like to share the details with you.
My general strategy is to take the .bashrc file I use elsewhere and
make two changes. First, if on Athena, don't set PATH or MANPATH
(thankfully, the system sets them correctly). Second, name my file
.bashrc.mine instead.
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.
I'd be interested in your reaction to how I set this up.
In /usr/athena/lib/init/bash_login, the following causes tset to go wild:
# On IRIX, the terminal type may not be set yet.
if [ "${term+set}" != set ]; then
eval `tset -s -Q`
fi
I think this is a bug in the translation from csh and that the
first test should have an uppercase TERM: "${TERM+set}".
(Or, more readably, [ ! "$TERM" ].)
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:
ulimit -c $COREDUMPSIZE_LIMIT
If COREDUMPSIZE_LIMIT is not set, this command outputs the value
rather than setting it.
One wonders why it isn't set for me, though. The line would be even
more robust like this:
test "$COREDUMPSIZE_LIMIT" && ulimit -c "$COREDUMPSIZE_LIMIT"
Finally, athena_manpath isn't set, as it is with tcsh. Seems useful,
and you might as well do it the same way. (Note that my strategy won't
use this.)
Thanks again for adding Bash support. I hope someday Bash will be the
default shell on Athena.
< Stephen