Package: xterm Version: 222-1etch2 Severity: normal
hello, sry i wanted to post this as an follow up for bug #276234 but the mail was rejected: host bugs.debian.org[140.211.166.43] said: 550 unknown user (in reply to RCPT TO command) this bug still exists in xterm. xterm inherits _every_ environment variable i've set _exept_ TMPDIR. this behaviour is not documented and afaik not intended. bug description / verification: a) ~/.bash_env --- 8< --- export TMPDIR=foo export TEST=bar --- >8 --- b) ~/.xsession --- 8< --- . ~/.bash_env --- >8 --- c) ~/.bash_profile --- 8< --- . ~/.bash_env --- >8 --- d) via ShowCmdDialog or some analougus tool out of your favorite wm: env > environment-test e) grep TMPDIR ~/environment-test TMPDIR=foo f) start xterm via debian menu $ echo $TMPDIR $ echo $TEST bar $ this bug is not windowmanager specific: i tested it under pekwm, fluxbox and gnome. this bug is debian specific. i compiled the xterm_229.orig.tar.gz without appling the debian pachtes to verify this. for various reasons -ls is not allways desireable, so using it as 'fix' for this bug is not allways acceptable (i for example have startx, screen -x and things like this in my .bash_profile on various desktop installations which make the destinction between 'interactive' and 'login' shell quite usefull). my workaround (for the sake of other users suffering from this bug): split your bash_profile and put environment settings in a some other file (eg. ~/.bash_env). source it out of ~/.bash_profile. export an check variable (eg. export _env=haveit). add the following lines to your ~/.bashrc: [ -z "$_env" ] && . ~/.bash_env # for the sake of completeness # workaround Bug #276234 [ -z "$TMPDIR" -a -n "$_env" ] && eval `/bin/grep "export TMPDIR" ~/.bash_env` yours, rainer ruprechtsberger -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable'), (150, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.23.1-fredericks Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages xterm depends on: ii libc6 2.3.6.ds1-13etch2 GNU C Library: Shared libraries ii libfontconfig1 2.4.2-1.2 generic font configuration library ii libice6 1:1.0.1-2 X11 Inter-Client Exchange library ii libncurses5 5.5-5 Shared libraries for terminal hand ii libsm6 1:1.0.1-3 X11 Session Management library ii libx11-6 2:1.0.3-7 X11 client-side library ii libxaw7 1:1.0.2-4 X11 Athena Widget library ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar ii libxft2 2.1.8.2-8 FreeType-based font drawing librar ii libxmu6 1:1.0.2-2 X11 miscellaneous utility library ii libxt6 1:1.0.2-2 X11 toolkit intrinsics library ii xbitmaps 1.0.1-2 Base X bitmaps Versions of packages xterm recommends: ii xutils 1:7.1.ds.3-1 X Window System utility programs -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]