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: Mike Frysinger
Subject: Re: How not to inherit any environment variable from parent process?
Date: Wed, 23 Jun 2010 00:51:50 -0400
User-agent: KMail/1.13.1 (Linux/2.6.34; KDE/4.4.3; x86_64; ; )

On Wednesday, June 23, 2010 00:42:19 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

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

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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