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