/etc/profile.d/vte.sh: need to quote ~
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vte3 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Noticed the bug on trusty, still present in
http://
__vte_prompt_
"${PWD/#$HOME/~}" needs to be
"${PWD/#$HOME/\~}"
because ${parameter/
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/
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.
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.