[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Handling of ENV options
From: |
Kalev Soikonen |
Subject: |
Handling of ENV options |
Date: |
Mon, 21 Mar 2011 12:09:58 +0200 |
User-agent: |
Mutt/1.4.2.3i |
I got hit by weird behavior while installing some package (as root). In shell
environment, the variable GZIP=-9 is set and exported. The package Makefile
contains something like this:
GZIP = /bin/gzip
target: dep
somecmd $< | $(GZIP) -9 > $@
Apparently, gmake exports the variables that were exported in the first place,
thus gzip is invoked with "GZIP=/bin/gzip" in its env. The result being zero-
length target _and_ gzip executable compressed into gzip.gz.
Now this can be seen as outrageously funny, but I wonder...
- Handling of ENV options,
Kalev Soikonen <=