bug-bash
[Top][All Lists]
Advanced

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

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


From: Bob Proulx
Subject: Re: How not to inherit any environment variable from parent process?
Date: Tue, 22 Jun 2010 22:57:15 -0600
User-agent: Mutt/1.5.18 (2008-05-17)

Mike Frysinger wrote:
> Bob Proulx wrote:
> >   $ env -i HOME=$HOME PATH=$PATH env | wc -l
> 
> since the args are being passed on the command line and the shell
> itself isnt evaluating it, you'll want to make sure to quote them if
> you have spaces:
> $ env -i HOME="$HOME" PATH="$PATH" env | wc -l

Oh, good catch!  Thanks for noting that.

> otherwise, not much else to add to Bob's fairly complete response
> -mike

Thanks!
Bob



reply via email to

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