bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: How not to inherit any environment variable from parent process?


From: Andres P
Subject: Fwd: How not to inherit any environment variable from parent process?
Date: Wed, 23 Jun 2010 00:15:52 -0430

Apparently this list doesn't set the Reply-To header, apologies.

---------- Forwarded message ----------
From: Andres P <address@hidden>
Date: Wed, Jun 23, 2010 at 12:10 AM
Subject: Re: How not to inherit any environment variable from parent process?
To: Peng Yu <address@hidden>


On Wed, Jun 23, 2010 at 12:02 AM, Peng Yu <address@hidden> wrote:
> I use bash --noprofile to start a bash session. Since this doesn't
> source any profile files, I'd think that no environment variable
> should be set. But I still see environment variables set. Are they
> inherit from the parent session. Is there a way to start a bash
> session without using parent environment variables?
>

env -i bash --noprofile

Or more interestingly, env -i bash --rcfile /dev/null



reply via email to

[Prev in Thread] Current Thread [Next in Thread]