hi
i recognized that the ~/.bash_logout only works when i log out from a console window. so what is the difference of log out from a GUI and log out from a console window. i tought log out is log out - isn't it
cheers
hi
i recognized that the ~/.bash_logout only works when i log out from a console window. so what is the difference of log out from a GUI and log out from a console window. i tought log out is log out - isn't it
cheers
"What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht
I'd say, purely historical reasons. bash mimics behaviour of csh here that had ~/.logout. In the seventies when csh was created, such thing as a GUI login/logout simply didn't exist.
On the other hand, you always can invoke bash with the -l option, or invoke xterm with the -ls option. The shell will then act as a login shell and execute ~/.bash_login on entering the shell and ~/.bash_logout on exiting it.
Bookmarks