[Bug 1398799] Re: /etc/profile.d/vte.sh: need to quote ~

Egmont Koblinger egmont at gmail.com
Tue Dec 9 10:46:03 UTC 2014


For Vivid this should be fixed in /etc/profile.d/vte-2.91.sh as shipped
by libvte-2.91-common.  Could you please confirm it?

Even though Ubuntu will have to ship vte-2.90 and 2.91 in parallel for a
while, I think they could just drop the libvte-2.90-common package and
let everyone refer to vte-2.91.sh (and call that vte.sh for simplicity).
I can't foresee how any future change in that script could break
anything for older vte.  As far as I recall, Fedora does this too.

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

Title:
  /etc/profile.d/vte.sh: need to quote ~

Status in vte3 package in Ubuntu:
  New

Bug description:
  Noticed the bug on trusty, still present in 
  http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/vte3/vivid/view/head:/src/vte.sh

  __vte_prompt_command():
  "${PWD/#$HOME/~}"  needs to be
  "${PWD/#$HOME/\~}"

  because ${parameter/pattern/string} does tilde expansion on string.

    The bash man page looks like its trying to say that it doesn't happen, but it does.
        In  each  of  the  cases below, word is subject to tilde expansion, parameter expansion, command substitution, and arithmetic
         expansion.
  Unlike the other things, e.g. ${parameter##word},  ${parameter/pattern/string} uses "string" instead of "word".

   Quoting with a \ should be fine, since quote-removal will get rid of
  it even if they change the code to match the docs, and stop doing
  tilde expansion on the replacement string.

  
   Also, this is really a separate bug, but /etc/profile.d/* doesn't get sourced by non-login shells.  This makes /etc/profile.d/vte.sh not very useful.  There really ought to be a similar directory for non-login shells.  bash-completion falls victim to this as well.

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



More information about the foundations-bugs mailing list