rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone

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

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