[17029] in Athena Bugs
sgi 8.3.10: bash dotfiles
daemon@ATHENA.MIT.EDU (Camilla R Fox)
Fri Aug 6 15:46:44 1999
Message-Id: <199908061946.PAA257848@smoke-screen.mit.edu>
To: bugs@MIT.EDU
Date: Fri, 06 Aug 1999 15:46:36 -0400
From: Camilla R Fox <cfox@MIT.EDU>
System name: smoke-screen.mit.edu
Type and version: IP32 8.3.10 (with mkserv)
Display type: CRM
Shell: /bin/athena/bash
Window manager: vtwm.gamma
What were you trying to do?
do a tty login, with bash as my shell
What's wrong:
/usr/athena/lib/init/bash_login spews errors:
bash: /usr/athena/lib/init/bash_login: line 76: syntax error near unexpected token `;'
bash: /usr/athena/lib/init/bash_login: line 76: ` ;;'
The relevant code is:
case $term in
switch|network|dialup|unknown)
# The standard terminal emulation is vt100. To use a different
# emulation, set the environmental variable DEF_TERM in your
# ~/.bash_environment file to to the device you want to emulate
# (one that the system will recognize).
export DEF_TERM
if [ "${DEF_TERM+set}" != set ]; then DEF_TERM=vt100; fi
set noglob; eval `tset -s -I -Q "?${DEF_TERM}"` || unset noglob
;;
esac
I can't see quite what's wrong, but if I comment out the if
statement, then the error goes away.
Note that if I do this, I get another similar error at the end of the
next case statement, line 100.