Don't enforce default window title

Bug #560520 reported by David Gómez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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 user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${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 user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\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.

David Gómez (dabisu)
Changed in bash (Ubuntu):
status: New → Confirmed
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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