nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone

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

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