rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone

Blame SOURCES/bash-4.2-rc2-logout.patch

b92f7d
diff --git a/config-top.h b/config-top.h
b92f7d
index 026d4a4..cb0e002 100644
b92f7d
--- a/config-top.h
b92f7d
+++ b/config-top.h
b92f7d
@@ -92,7 +92,7 @@
b92f7d
 /* #define SYS_BASHRC "/etc/bash.bashrc" */
b92f7d
 
b92f7d
 /* System-wide .bash_logout for login shells. */
b92f7d
-/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
b92f7d
+#define SYS_BASH_LOGOUT "/etc/bash.bash_logout"
b92f7d
 
b92f7d
 /* Define this to make non-interactive shells begun with argv[0][0] == '-'
b92f7d
    run the startup files when not in posix mode. */
b92f7d
diff --git a/doc/bash.1 b/doc/bash.1
b92f7d
index 04ce845..bfde55e 100644
b92f7d
--- a/doc/bash.1
b92f7d
+++ b/doc/bash.1
b92f7d
@@ -335,8 +335,8 @@ option may be used when the shell is started to inhibit this behavior.
b92f7d
 When an interactive login shell exits,
b92f7d
 or a non-interactive login shell executes the \fBexit\fP builtin command,
b92f7d
 .B bash
b92f7d
-reads and executes commands from the file \fI~/.bash_logout\fP, if it
b92f7d
-exists.
b92f7d
+reads and executes commands from the files \fI~/.bash_logout\fP
b92f7d
+and \fI/etc/bash.bash_logout\fP, if the files exists.
b92f7d
 .PP
b92f7d
 When an interactive shell that is not a login shell is started,
b92f7d
 .B bash
b92f7d
@@ -10558,6 +10558,9 @@ The \fBbash\fP executable
b92f7d
 .FN /etc/profile
b92f7d
 The systemwide initialization file, executed for login shells
b92f7d
 .TP
b92f7d
+.FN /etc/bash.bash_logout
b92f7d
+The systemwide login shell cleanup file, executed when a login shell exits
b92f7d
+.TP
b92f7d
 .FN ~/.bash_profile
b92f7d
 The personal initialization file, executed for login shells
b92f7d
 .TP
b92f7d
-- 
b92f7d
2.9.3
b92f7d