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

** Description changed:

- Submitting a patch soon.
+ 
https://git.launchpad.net/~iheino+ub/ubuntu/+source/bash/commit/?h=bugfix/1960366
  
- Without fix:
- $ set|fgrep PS1|head -1
+ 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\]\$
 '
- 
- 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\]\$
 '

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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:
  
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\]\$
 '

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to