🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.shell
3 messages
3 total messages Started by Lawrence R. Daffner Sun, 09 Dec 1990 20:55
Bash and .logout : Are they compatible?
#1924
Author: Lawrence R. Daffner
Date: Sun, 09 Dec 1990 20:55
10 lines
875 bytes
    Does anyone know if there is a way to force bash to source the .logout 
file on exit from the login shell. If it is supposed to do so, any clue why
it doesn't. I would prefer to still be able to use ^D to logout.I could alias
logout to ". .logout;\logout", but would ^D use this alias, or just log me out,
no questions asked?   


                         Any help appreciated,
                         Larry ( daffner@ecn.purdue.edu )
Re: Bash and .logout : Are they compatible?
#1943
Author: Bob Mende Pie
Date: Tue, 11 Dec 1990 15:24
16 lines
1047 bytes
daffner@ecn.purdue.edu (Lawrence R. Daffner) writes:
>    Does anyone know if there is a way to force bash to source the .logout 
>file on exit from the login shell. If it is supposed to do so, any clue why
>it doesn't. I would prefer to still be able to use ^D to logout.I could alias
>logout to ". .logout;\logout", but would ^D use this alias, or just log me out,
>no questions asked?   

   Bash will execute the contents of ~/.bash_logout.    Put this in your
home directory and enjoy.




-- 
					/Bob...
{...}!rutgers!mende         mende@cs.rutgers.edu          mende@zodiac.bitnet
Re: Bash and .logout : Are they compatible?
#1947
Author: The Grey Wolf
Date: Thu, 13 Dec 1990 02:08
30 lines
1660 bytes
In article <9012092055.AA04975@gn.ecn.purdue.edu> daffner@ecn.purdue.edu (Lawrence R. Daffner) writes:
>
>    Does anyone know if there is a way to force bash to source the .logout 
>file on exit from the login shell. If it is supposed to do so, any clue why
>it doesn't. I would prefer to still be able to use ^D to logout.I could alias
>logout to ". .logout;\logout", but would ^D use this alias, or just log me out,
>no questions asked?   
>
>
>                         Any help appreciated,
>                         Larry ( daffner@ecn.purdue.edu )

Try inserting the following into your .profile:

export LOGIN
if [ "$LOGIN" = "" ] ; 
	then LOGIN="logged in"
	trap "echo logout ; . $HOME/.bash_logout" 0
fi

This seems the most likely way to do it (I assume that bash is GNU's
version of the Bourne shell with various non-proprietary doodads
inserted).

If my assumption is wrong, flames to my mailbox, please.
-- 
On the 'Net:  Why are more and more fourth-level wizard(-wannabe)s trying to
invoke ninth-level magic, instead of taking the time to climb the other
(quite essential) thirteen levels so they can do this properly?
...!{ucbvax,acad,uunet,amdahl,pyramid}!unisoft!greywolf
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads