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):
Steps to Reproduce:
1. copy /etc/skel/.bash_logout to $(HOME):
cp /etc/skel/.bash_logout ~
2. Break your $PATH, e.g.
[A classical typo users trip into when modifying $PATH]
-bash: clear: command not found
IMO, this also is a security leak. "clear" is a too common name to search for on
(In reply to comment #0)
> Additional info:
> IMO, this also is a security leak. "clear" is a too common name to search for on
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.