[Bug 1960366] [NEW] skel.bashrc PS1 debian_chroot not dynamic in xterm title

Tuomas Heino 1960366 at bugs.launchpad.net
Tue Feb 8 23:03:55 UTC 2022


Public bug reported:

Submitting a patch soon.

Without fix:
$ 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\]\$ '

With quotation fix applied:
$ 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\]\$ '

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1960366

Title:
  skel.bashrc PS1 debian_chroot not dynamic in xterm title

Status in bash package in Ubuntu:
  New

Bug description:
  Submitting a patch soon.

  Without fix:
  $ 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\]\$ '

  With quotation fix applied:
  $ 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\]\$ '

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1960366/+subscriptions




More information about the foundations-bugs mailing list