help-make
[Top][All Lists]
Advanced

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

Re: Cleansing the environment automatically


From: David Boyce
Subject: Re: Cleansing the environment automatically
Date: Fri, 18 Jan 2008 23:46:34 -0500

How about this:

% head -20 /tmp/envsh /tmp/makefile
==> /tmp/envsh <==
#!/bin/sh
exec env - PATH=$PATH TERM=$TERM /bin/sh "$@"

==> /tmp/makefile <==
SHELL := /tmp/envsh

all:
        env | wc -l

% make
env | wc -l
       2
%




reply via email to

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