environment variables

Nico Schlömer <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CAK6Z60cQ4y-7dikV+14xO0CaZuF48qHNQ70ffngiYyEkTqY9iw@mail.gmail.com>
Hi all,

I'm not quite sure what environment variables are set when executing
an interactive screen vs. a detached screen. For example, when filling
in this

$ cat ~/.bashrc | grep FOO
export FOO="bar"

I get

$ screen
--> screen
$ echo $FOO
bar

but a detached shell yields nothing:

$ screen -s /bin/bash -L -d -m echo $FOO
$

Any idea why this could be?

Cheers,
Nico
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.