Web lists-archives.com

Re: xfce4-terminal fails to “pass through” environment variables




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Oct 02, 2017 at 02:58:59PM +1100, Zenaan Harkness wrote:
> >From terminal A (may be xterm or xfce4-terminal), launch terminals:
> 
>  MYVAR="wow - some text!" xterm &
>  MYVAR="wow - some text!" xfce4-terminal &
> 
> Now from those terminals, run:
> 
>  echo $MYVAR
> 
> 
> In xterm, we get the expected output - evidently MYVAR is correctly
> "passed through" - this is how env vars should work of course :)
> 
> But sadly :( , as in, very sadly  :,( , xfce4-terminal does not
> produce the expected output - MYVAR is not “passed through” it seems.

The var isn't being passed through to the shell being run in the term,
you mean.

Perhaps the difference is more in the way the two terms run a shell
(which they do by default when not otherwise told -- at least xterm
does so).

Perhaps xfce4-terminal has an option corresponding to xterm's -e
and you can play with that, to find out who is kidnapping your
vars.

Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlnR4rwACgkQBcgs9XrR2kblwwCfdGOLToU4YhZGskrxMEdlqQI5
wfEAnihtzDvaCBONkesO7M6KZh31SAu7
=fdA1
-----END PGP SIGNATURE-----