skel.bashrc PS1 debian_chroot not dynamic in xterm title

Bug #1960366 reported by Tuomas Heino
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
New
Undecided
Unassigned

Bug Description

https://git.launchpad.net/~iheino+ub/ubuntu/+source/bash/commit/?h=bugfix/1960366

Expected:

debian_chroot part of xterm title should update dynamically; with the following PS1 contents by default

$ set | fgrep PS1 | head -1
PS1='\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

Actual result without patch:

debian_chroot part of xterm title got evaluated only during bash startup, as can be seen in PS1 contents

$ set | fgrep PS1 | head -1
PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

Tags: jammy noble patch
Revision history for this message
Tuomas Heino (iheino+ub) wrote :
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0001-Properly-escape-PS1-for-xterm-title.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Tuomas Heino (iheino+ub)
tags: added: jammy
Tuomas Heino (iheino+ub)
tags: added: noble
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.