Article View: gnu.bash.bug
Article #1161Interrupting .bash_profile
From: Gregory N. Bond
Date: Sun, 11 Feb 1990 22:36
Date: Sun, 11 Feb 1990 22:36
30 lines
1397 bytes
1397 bytes
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
Technical Details
Message-ID:
<GNB.90Feb12093602@baby.bby.oz.au>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!murtoa.cs.mu.oz.au!ditmela!yarra!melba.bby.oz.au!leo!gnbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!murtoa.cs.mu.oz.au!ditmela!yarra!melba.bby.oz.au!leo!gnb From: gnb@bby.oz.au (Gregory N. Bond) Newsgroups: gnu.bash.bug Subject: Interrupting .bash_profile Message-ID: <GNB.90Feb12093602@baby.bby.oz.au> Date: 11 Feb 90 22:36:02 GMT Sender: news@melba.bby.oz.au Organization: Burdett, Buckeridge and Young Ltd. Lines: 30