Currently, bash auto-logout (set via TMOUT) does not call ~/.bash_logout. I've send a patch upstream. Reproducible: Always Steps to Reproduce: 1.echo "clear" > ~/.bash_logout 2.export TMOUT=10 3. Actual Results: ~/.bash_logout is NOT called. Expected Results: Execute ~/.bash_logout Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1) ================================================================= System uname: 2.6.1 i686 AMD Duron(tm) processor Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache clean notitles sandbox userpriv" GENTOO_MIRRORS="http://gentoo.seren.com/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo http://www.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/portage-tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow X alsa apm arts avi berkdb cdr crypt cups doc encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml imlib joystick jpeg kde libg++ libwww mad maildir mikmod mmx mono mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby ruby18 sdl slang spell ssl stroke svga tcpd truetype x86 xml2 xv zlib"
Created attachment 24771 [details, diff] Patch to force auto-logout to read ~/.bash_logout Does not interfer with any other patches for ebuild bash-2.05b-r9.
Does this still apply to bash-3.0-r6?
Don't know, I still have 2.05b installed. I'll install 3.0 sometime and let you know.
3.0 fixes this bug; tested using 3.0-r6 From CHANGES: f. Fixed the internal logout code so that shells that time out waiting for input (using $TMOUT) run ~/.bash_logout.
Cool, thanks for the report and for testing :-)