FS#36170 - [vte3] /etc/profile.d/vte.sh overwrites PROMPT_COMMAND

Attached to Project: Arch Linux
Opened by Kari Hreinsson (karihre) - Tuesday, 16 July 2013, 15:41 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 07 May 2021, 08:51 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

In file /etc/profiled./vte.sh line 59 the variable PROMPT_COMMAND is overwritten. This conflicts with packages such as autojump which also utilize the PROMPT_COMMAND variable. This bug is similar to another one reported with bash (https://bugs.archlinux.org/task/22161) and the suggestion is the same, instead of overwriting the variable as it is now:
PROMPT_COMMAND="__vte_prompt_command"
do something like:
PROMPT_COMMAND="${PROMPT_COMMAND:-:} ; __vte_prompt_command"

A workaround for affected autojump users is to source is to simply source /etc/profile.d/autojump.bash after sourcing /etc/profile in ~/.bashrc .

Additional info:
* vte3 version 0.34.7-1
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Friday, 07 May 2021, 08:51 GMT
Reason for closing:  None
Additional comments about closing:  /etc/profile.d/vte.sh is no more part of the package
Comment by Jan Alexander Steffens (heftig) - Friday, 26 July 2013, 22:00 GMT
Please upstream this at http://bugzilla.gnome.org/
Comment by Kari Hreinsson (karihre) - Friday, 26 July 2013, 22:12 GMT

Loading...