Public bug reported:
Binary package hint: bash
Bash default /etc/bash.bashrc has these commented lines:
# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to u...@host:dir
#case "$TERM" in
#xterm*|rxvt*)
# PROMPT_COMMAND='echo -ne "\033]0;${us...@${hostname}: ${PWD}\007"'
The explanatory comment says it all. But ubuntu .bashrc in the user
$HOME has these ones:
# If this is an xterm set the title to u...@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}...@\h: \w\a\]$PS1"
;;
*)
;;
esac
So is happily ignoring bash sane configuration defaults. Therefore
commands like 'xterm -T mytitle', 'sakura -t mytitle' or 'gnome-terminal
-t mytitle' aren't doing what they're expected to do. It'll be different
if the PS1 is set by the user to do that. But providing a default PS1
value with a "change window title" escape sequence is plain wrong.
Please comment those lines in the $HOME .bashrc file too.
** Affects: bash (Ubuntu)
Importance: Undecided
Status: Confirmed
** Changed in: bash (Ubuntu)
Status: New => Confirmed
** Description changed:
Binary package hint: bash
Bash default /etc/bash.bashrc has these commented lines:
# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to u...@host:dir
#case "$TERM" in
#xterm*|rxvt*)
# PROMPT_COMMAND='echo -ne "\033]0;${us...@${hostname}: ${PWD}\007"'
The explanatory comment says it all. But ubuntu .bashrc in the user
$HOME has these ones:
# If this is an xterm set the title to u...@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}...@\h: \w\a\]$PS1"
- ;;
+ ;;
*)
- ;;
+ ;;
esac
-
- So is happily ignoring bash sane configuration defaults. Therefore commands
like 'xterm -T mytitle',
- 'sakura -t mytitle' or 'gnome-terminal -t mytitle' aren't doing what they're
expected to do. It'll be different
- if the PS1 is set by the user to do that. But providing a default PS1 value
with a "change window title" escape
- sequence is plain wrong.
+ So is happily ignoring bash sane configuration defaults. Therefore
+ commands like 'xterm -T mytitle', 'sakura -t mytitle' or 'gnome-terminal
+ -t mytitle' aren't doing what they're expected to do. It'll be different
+ if the PS1 is set by the user to do that. But providing a default PS1
+ value with a "change window title" escape sequence is plain wrong.
Please comment those lines in the $HOME .bashrc file too.
--
Don't enforce default window title
https://bugs.launchpad.net/bugs/560520
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs