Red Hat Bugzilla – Bug 42491
PROMPT_COMMAND set inappropriately in /etc/bashrc
Last modified: 2007-04-18 12:33:26 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.75 [en] (X11; U; Linux 2.2.17 i686)
Description of problem:
It's really a very bad idea to set PROMPT_COMMAND in /etc/bashrc.
In particular, it should not be set to echo an xterm escape. More,
specifically, it should not be set to diddle with the term window
title. This defeats standard means for users to set the title in xterm and
rxvt and causes confusion.
In general, I suggest that Red Hat refrain from setting a bunch of
personal preference type variables in the system init files for bash.
Steps to Reproduce:
1. start bash with xterm -title fubar or rxvt -title fubar
Actual Results: You don't get the window title you specified.
Expected Results: The window should have had the title "fubar".
If you want Red Hat to be accepted by casual, non-geek type users,
then don't do unnecessary, fancy, counterintuitive things in the
system startup files.
It's a feature.
You can turn it off in the current version (rawhide), though.