Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 223960 - .bash_logout should invoke /usr/bin/clear
.bash_logout should invoke /usr/bin/clear
Product: Fedora
Classification: Fedora
Component: bash (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2007-01-23 06:04 EST by Ralf Corsepius
Modified: 2009-03-23 15:19 EDT (History)
1 user (show)

See Also:
Fixed In Version: 3.2-4.fc7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-01-23 06:38:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ralf Corsepius 2007-01-23 06:04:37 EST
Description of problem:
/etc/skel/.bash_logout invokes "clear"

i.e. "clear" is being searched on $PATH.
This breaks if users screw up their $PATH. 

IMO, this should be /usr/bin/clear instead.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. copy /etc/skel/.bash_logout to $(HOME):
cp /etc/skel/.bash_logout ~

2. Break your $PATH, e.g.
export PATH=/foo/bar:PATH
[A classical typo users trip into when modifying $PATH]

3. logout:
Actual results:
> exit
-bash: clear: command not found

Expected results:

Additional info:
IMO, this also is a security leak. "clear" is a too common name to search for on
Comment 1 Susi Lehtola 2009-03-23 15:19:52 EDT
(In reply to comment #0)
> Additional info:
> IMO, this also is a security leak. "clear" is a too common name to search for on
> $PATH.  

You're right. Even though we can (hopefully) make sure no other package in Fedora has executables named 'clear', there's no guarantee that users don't have such things in their $PATH.

However, not clearing the screen is also a bit of a security risk; I for instance am very satisfied with the screen clearing behaviour of Fedora.

Note You need to log in before you can comment on or make changes to this bug.