was reading "man bash" and ran across this:
"When an interactive login shell exits, or a non-interactive login
shell executes the exit builtin command, bash reads and executes
commands from the files ~/.bash_logout and /etc/bash.bash_logout, if
the files exists."
i was totally unaware of the system-wide logout file
/etc/bash.bash_logout, so i tested it and it seemed to have no effect,
so i RTFS for bash and, in the CHANGES file, there was this from way
back:
"This document details the changes between this version,
bash-2.0-beta2, and the previous version, bash-2.0-beta1.
... snip ...
There is a new #define available in config.h.top: SYS_BASH_LOGOUT.
If defined to a filename, bash reads and executes commands from that
file when a login shell exits. It's commented out by default."
sure enough, in the current source in that file:
/* System-wide .bashrc file for interactive shells. */
/* #define SYS_BASHRC "/etc/bash.bashrc" */
/* System-wide .bash_logout for login shells. */
/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
so if red hat builds bash based on the source as it is, then that
variable is still commented out and the man page is misleading.
thoughts?
rday