Bug#740919: xterm: clears $SHELL from environment at startup
Package: xterm
Version: 302-1
Severity: important
Hi *,
I’ve got a script that dumps the contents of the environment at
startup to syslog, and just used it to investigate a user-visible
problem. tl;dr: the output of xterm -e dumpargs differs between
screen 301-1 (Debian) and 302-1 (Debian; no idea if this bug is
also upstream):
Among the usual differences like $PGRP and $WINDOWID I have:
--- x1 2014-03-06 09:28:26.356676132 +0100
+++ x2 2014-03-06 09:28:26.092672608 +0100
@@ -31,8 +31,8 @@
typeset PWD=/home/tglase
typeset -x QUILT_PATCHES=-
-typeset -i -x -U RANDOM=15871
+typeset -i -x -U RANDOM=565
typeset -i SECONDS=0
-typeset -x SHELL=
+typeset -x SHELL=/bin/mksh
typeset -x SIRCNICK='mira|AO'
typeset -x SIRCSERVER=127.0.0.1:s7000
typeset -x SSH_AGENT_PID=3511
@@ -52,12 +52,12 @@
typeset -x USER=tglase
typeset -i -U USER_ID=2339
typeset -x VISUAL=/usr/bin/jupp
-typeset -x WINDOWID=25165837
+typeset -x WINDOWID=33554445
typeset -x WINDOWPATH=7
typeset -x XDG_SESSION_COOKIE=87bd0826b5c41524a188f458494f992f-1393518574.144306-436980184
typeset -x XDM_MANAGED='method=classic'
typeset -x XTERM_LOCALE=en_GB.UTF-8
typeset -x XTERM_SHELL=/usr/local/bin/dumpargs
-typeset -x XTERM_VERSION='XTerm(302)'
+typeset -x XTERM_VERSION='XTerm(301)'
typeset -x _=/usr/bin/xterm
args(0) 0:/usr/local/bin/dumpargs
User story: I use “xterm -e screen” (basically) to start GNU screen,
which then has “shell "-${SHELL}"” in ~/.screenrc which should really
really not be empty. Also, xterm IMHO has no business touching that
part of my environment.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (100, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Versions of packages xterm depends on:
ii libc6 2.18-4
ii libfontconfig1 2.11.0-5
ii libice6 2:1.0.8-2
ii libtinfo5 5.9+20140118-1
ii libutempter0 1.1.5-4
ii libx11-6 2:1.6.2-1
ii libxaw7 2:1.0.12-1
ii libxft2 2.3.1-2
ii libxmu6 2:1.1.1-1
ii libxpm4 1:3.5.10-1
ii libxt6 1:1.1.4-1
ii xbitmaps 1.1.1-2
Versions of packages xterm recommends:
ii x11-utils 7.7+1
Versions of packages xterm suggests:
pn xfonts-cyrillic <none>
-- no debconf information
Reply to: