[gnu.bash.bug] Interrupting .bash_profile

gnb@bby.oz.au (Gregory N. Bond) (02/12/90)

A sample of my .login file (for csh):

if ( "$tty" == "/dev/console" && "$TERM" == "sun" ) then
	echo starting suntools....
	sleep 2
	if ( "$host" == "leo" ) then
		setenv mono=true
		exec suntools
	else
		exec suntools -f 255 250 120 -b 0 0 120
	endif
endif


which automatically starts up suntools, after telling me.  Under csh,
I can interrupt the csh when it shows the starting message, and it
aborts the .login and I have a login shell.

Bash, however, when executing the .bash_profile, terminates the login
shell, so there is no way to do a (start suntools unless I interrupt)
type thing.  This is the only problem stopping me using bash as a
login shell.

Is this a bug?  Is there some other way to get this functionality?

Greg.
--
Gregory Bond, Burdett Buckeridge & Young Ltd, Melbourne, Australia
Internet: gnb@melba.bby.oz.au    non-MX: gnb%melba.bby.oz@uunet.uu.net
Uucp: {uunet,pyramid,ubc-cs,ukc,mcvax,prlb2,nttlab...}!munnari!melba.bby.oz!gnb

bfox@sbphy.mit.edu (Brian Fox) (02/12/90)

   Date: 11 Feb 90 22:36:02 GMT
   From: leo!gnb@melba.bby.oz.au  (Gregory N. Bond)
   Organization: Burdett, Buckeridge and Young Ltd.
   Sender: bug-bash-request@prep.ai.mit.edu

   A sample of my .login file (for csh):

   if ( "$tty" == "/dev/console" && "$TERM" == "sun" ) then
	   echo starting suntools....
	   sleep 2
	   if ( "$host" == "leo" ) then
		   setenv mono=true
		   exec suntools
	   else
		   exec suntools -f 255 250 120 -b 0 0 120
	   endif
   endif


   which automatically starts up suntools, after telling me.  Under csh,
   I can interrupt the csh when it shows the starting message, and it
   aborts the .login and I have a login shell.

   Bash, however, when executing the .bash_profile, terminates the login
   shell, so there is no way to do a (start suntools unless I interrupt)
   type thing.  This is the only problem stopping me using bash as a
   login shell.

   Is this a bug?  Is there some other way to get this functionality?

   Greg.
   --
   Gregory Bond, Burdett Buckeridge & Young Ltd, Melbourne, Australia
   Internet: gnb@melba.bby.oz.au    non-MX: gnb%melba.bby.oz@uunet.uu.net
   Uucp: {uunet,pyramid,ubc-cs,ukc,mcvax,prlb2,nttlab...}!munnari!melba.bby.oz!gnb

This is fixed in 1.05.

Brian