rcolebaugh / rpms / bash

Forked from rpms/bash 2 years ago
Clone

Blame bash-4.2-rc2-logout.patch

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