See also 322957.
Justin
On Mon, Oct 03, 2005 at 09:34:07PM +0200, Javier Fern??ndez-Sanguino Pe??a 
wrote:
> 
> Package: bash
> Version: 3.0-15
> Priority: wishlist
> Tags: patch
> 
> It would be nice if bash would provide a default .bash_logout in /etc/skel
> for users to use by default to clean up the screen when login through
> console this is common request, specially in multi-user environments where
> people don't want others to see what they were working on.  
> 
> The attached example provides just that, cleaning only if PPID
> points to a 'login' program. 
> 
> If you feel that enabling it would not be appropiate (I don't think it harms,
> but then again there might be people that don't like this) then please either
> provide it commented out or in the examples directory of bash-doc.
> If anything, it provides something people can base their logout stuff on
> so they don't have to reinvent the wheel.
> 
> Regards
> 
> Javier

> # ~/.bash_logout: executed by bash(1) for login shells when
> # exiting the session.
> 
> # Are we a login shell?
> if [ "X`ps --pid ${PPID} -o comm=`" = "Xlogin" ] ; then
> # Just clean the screen, requires ncurses-bin being installed:
>       [ -x /usr/bin/clear ] && /usr/bin/clear
> fi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to