Re: How not to inherit any environment variable from parent process?
From:
Clark J. Wang
Subject:
Re: How not to inherit any environment variable from parent process?
Date:
Wed, 23 Jun 2010 12:40:02 +0800
On Wed, Jun 23, 2010 at 12:32 PM, Peng Yu <pengyu.ut@gmail.com> 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?
>
> This is also not a bash specific question but the env command may help.
> --
> Regards,
> Peng
>
>