does fedora version of bash recognize SYS_BASH_LOGOUT?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux