rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone

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

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