[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: May be bug in export PATH and $(shell ...).
From: |
Paul Smith |
Subject: |
Re: May be bug in export PATH and $(shell ...). |
Date: |
Fri, 11 Jun 2010 20:39:21 -0400 |
On Fri, 2010-06-11 at 11:29 +0300, Oleksandr Gavenko wrote:
> Just do:
>
> $ mkdir test
> $ cat <<EOF >test/test.sh
> #!/bin/sh
> echo I am HERE
> EOF
> $ cat <<EOF >Makefile
> export PATH := test:$(PATH)
> $(shell test.sh)
> all:
> test.sh
> EOF
Variables exported by make are not passed to invocations of $(shell ...)
Making this work is not trivial, because it's simple to get into
situations where variable expansion is infinitely recursive.
See: https://savannah.gnu.org/bugs/?10593
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist