'clear' is not run before 'exit'

Bug #29405 reported by Lukas Sabota
14
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Fix Released
Medium
Matthias Klose

Bug Description

When logging out of a F1-F6 terminal, all of your existing output of activies are left on the screen even when the next login screen appears. The screen should be cleared before the new login appears, so private output won't be viewed by other users.

Revision history for this message
Lukas Sabota (punkrockguy318) wrote :

This could be done by appending "clear" to the default .bash_logout

Matthias Klose (doko)
Changed in bash:
assignee: nobody → doko
status: Unconfirmed → Fix Committed
Revision history for this message
Rocco Stanzione (trappist) wrote :

trappist@grasshopper:~$ egrep -v '^[#$]' /etc/skel/.bash_logout
if [ "$SHLVL" = 1 ]; then
    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi

Changed in bash:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.