Thread View: gnu.bash.bug
3 messages
3 total messages
Started by James Van Artsdalen
Wed, 14 Jun 1989 03:59
Re: aliases
Author: James Van Artsdalen
Date: Wed, 14 Jun 1989 03:59
Date: Wed, 14 Jun 1989 03:59
14 lines
851 bytes
851 bytes
> Date: Sat, 10 Jun 89 21:38:00 -0700 > From: Mac Pigman <gwp@dido.caltech.edu> > (One thing I miss is csh's .logout.) Try this in .bash_profile to get what you want. trap '. $HOME/.logout' 0 Remember that the command string gets evaluated twice: one when the trap is set, and once when run. --- James R. Van Artsdalen james@bigtex.cactus.org "Live Free or Die" Dell Computer Co 9505 Arboretum Blvd Austin TX 78759 512-338-8789
aliases
Author: Brian Fox
Date: Wed, 14 Jun 1989 15:32
Date: Wed, 14 Jun 1989 15:32
13 lines
758 bytes
758 bytes
Posted-Date: Tue, 13 Jun 89 22:59:17 CDT Date: Tue, 13 Jun 89 22:59:17 CDT From: james@bigtex.cactus.org (James Van Artsdalen) > Date: Sat, 10 Jun 89 21:38:00 -0700 > From: Mac Pigman <gwp@dido.caltech.edu> > (One thing I miss is csh's .logout.) Use ~/.bash_logout. Brian Fox
aliases
Author: Jeff Kellem
Date: Wed, 14 Jun 1989 16:48
Date: Wed, 14 Jun 1989 16:48
30 lines
1617 bytes
1617 bytes
| Posted-Date: Tue, 13 Jun 89 22:59:17 CDT | Date: Tue, 13 Jun 89 22:59:17 CDT | From: james@bigtex.cactus.org (James Van Artsdalen) | | > Date: Sat, 10 Jun 89 21:38:00 -0700 | > From: Mac Pigman <gwp@dido.caltech.edu> | | > (One thing I miss is csh's .logout.) | | Try this in .bash_profile to get what you want. | | trap '. $HOME/.logout' 0 But, ~/.bash_logout (if it exists) already gets executed when you logout of a bash login shell. So, there's really no need for the trap. The method above works, except that ~/.logout will get executed even when you exit out of a bash shell that is not a login shell. (I don't believe it should unless bash is a login shell.) Also, the ~/.logout file could probably consist of csh commands, since .logout is a csh thing, so renaming it to something like ~/.bash_logout would help if you did want to do it with 'trap'. | James R. Van Artsdalen james@bigtex.cactus.org "Live Free or Die" | Dell Computer Co 9505 Arboretum Blvd Austin TX 78759 512-338-8789 -jeff Jeff Kellem INTERNET: composer@bu-cs.bu.edu (or composer%bu-cs.bu.edu@bu-it.bu.edu) UUCP: ...!harvard!bu-cs!composer
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