nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone

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

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