Your message dated Mon, 14 Jul 2025 11:52:57 +0100
with message-id <[email protected]>
and subject line Re: Bug#1063941: libvte-2.91-common:
/etc/profile.d/vte-2.91.sh dereferences undefined PS0
has caused the Debian Bug report #1063941,
regarding libvte-2.91-common: /etc/profile.d/vte-2.91.sh dereferences undefined
PS0
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1063941: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063941
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libvte-2.91-common
Version: 0.75.91-2
Severity: important
Tags: patch
Dear Maintainer,
At the start of my $HOME/.bashrc I have configured "set -u" to catch the
use of undefined variables.
Whenever I open a new gnome-terminal window using bash as the shell, the
script vte-2.91.sh will emit two messages about dereferencing an
undefined variable PS0.
This is a recent regression and similar in nature to the earlier
bug #941247 that has been fixed.
The script appears to be part of the Debian packaging; I do not find it in
the upstream repository https://gitlab.gnome.org/GNOME/vte/-/tree/master
The attached patch fixes the problem for me. I think that it would be good
to test the script with "set -u" somehow, to prevent future regressions
like this.
Best regards,
Marko
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.6.15-amd64 (SMP w/40 CPU threads; PREEMPT)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libvte-2.91-common depends on:
ii libc6 2.37-15
libvte-2.91-common recommends no packages.
libvte-2.91-common suggests no packages.
-- Configuration Files:
/etc/profile.d/vte-2.91.sh changed [not included]
-- no debconf information
--- /etc/profile.d/vte-2.91.sh
+++ /etc/profile.d/vte-2.91.sh
@@ -80,7 +80,7 @@
# the column, important for handling TAB followed by BS keypresses.
# Prepend to the user's PS0 to preserve whether it ends in '\r'.
# Note that bash doesn't support the \[ \] markers here.
- PS0='\e]133;C\e\\\r'"$PS0"
+ PS0='\e]133;C\e\\\r'"${PS0:-}"
fi
elif [[ -n "${ZSH_VERSION:-}" ]]; then
--- End Message ---
--- Begin Message ---
Version: 0.77.91-1
On Sat, 24 Feb 2024 at 15:43:24 +0100, Egmont Koblinger wrote:
I've applied the fix upstream, it'll be in the next version. (The script _is_
upstream, in src/[1]vte.sh.in).
Fixed in 0.77.0 upstream. We never packaged that version in Debian, so
closing this as fixed in the first version we packaged that contained
the fixed script instead.
smcv
--- End Message ---