psss / rpms / bash

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