Discussion:
[Help-bash] Is there a way to selectively inherit variables from the parent process in (list)?
Peng Yu
2018-02-27 22:35:10 UTC
Permalink
Hi,

(list) inherits all variables from the parent process as far as I
understand. Is there a way to selectively inherit variables from the
parent process in (list)? Thanks.

$ YYY=b
$ (echo $YYY)
b
--
Regards,
Peng
Greg Wooledge
2018-02-28 13:21:34 UTC
Permalink
Post by Peng Yu
(list) inherits all variables from the parent process as far as I
understand. Is there a way to selectively inherit variables from the
parent process in (list)? Thanks.
(unset DISPLAY; foobar --without-x)

Loading...