|
|
ff19ae |
diff -up bash-3.2/config-top.h.logout bash-3.2/config-top.h
|
|
|
ff19ae |
--- bash-3.2/config-top.h.logout 2011-04-14 08:55:55.000000000 +0200
|
|
|
ff19ae |
+++ bash-3.2/config-top.h 2011-04-14 08:55:55.000000000 +0200
|
|
|
ff19ae |
@@ -78,7 +78,7 @@
|
|
|
ff19ae |
/* #define SYS_BASHRC "/etc/bash.bashrc" */
|
|
|
ff19ae |
|
|
|
ff19ae |
/* System-wide .bash_logout for login shells. */
|
|
|
ff19ae |
-/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
|
|
|
ff19ae |
+#define SYS_BASH_LOGOUT "/etc/bash.bash_logout"
|
|
|
ff19ae |
|
|
|
ff19ae |
/* Define this to make non-interactive shells begun with argv[0][0] == '-'
|
|
|
ff19ae |
run the startup files when not in posix mode. */
|
|
|
ff19ae |
diff -up bash-3.2/doc/bash.1.logout bash-3.2/doc/bash.1
|
|
|
ff19ae |
--- bash-3.2/doc/bash.1.logout 2011-04-14 09:16:32.000000000 +0200
|
|
|
ff19ae |
+++ bash-3.2/doc/bash.1 2011-04-14 11:59:33.000000000 +0200
|
|
|
ff19ae |
@@ -326,8 +326,8 @@ option may be used when the shell is sta
|
|
|
ff19ae |
.PP
|
|
|
ff19ae |
When a login shell exits,
|
|
|
ff19ae |
.B bash
|
|
|
ff19ae |
-reads and executes commands from the file \fI~/.bash_logout\fP, if it
|
|
|
ff19ae |
-exists.
|
|
|
ff19ae |
+reads and executes commands from the files \fI~/.bash_logout\fP
|
|
|
ff19ae |
+and \fI/etc/bash.bash_logout\fP, if the files exists.
|
|
|
ff19ae |
.PP
|
|
|
ff19ae |
When an interactive shell that is not a login shell is started,
|
|
|
ff19ae |
.B bash
|
|
|
ff19ae |
@@ -8814,6 +8814,9 @@ The \fBbash\fP executable
|
|
|
ff19ae |
.FN /etc/profile
|
|
|
ff19ae |
The systemwide initialization file, executed for login shells
|
|
|
ff19ae |
.TP
|
|
|
ff19ae |
+.FN /etc/bash.bash_logout
|
|
|
ff19ae |
+The systemwide login shell cleanup file, executed when a login shell exits
|
|
|
ff19ae |
+.TP
|
|
|
ff19ae |
.FN ~/.bash_profile
|
|
|
ff19ae |
The personal initialization file, executed for login shells
|
|
|
ff19ae |
.TP
|