[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
environmental variables are recursively expanded
From: |
gk |
Subject: |
environmental variables are recursively expanded |
Date: |
Thu, 07 Nov 2002 13:12:11 -0800 |
I have just discovered that environmental variables are recursively expanded.
I did not see any mention of this in the manual and I think it is worthy of
note.
--- Makefile
a+=$(a)
foo:
@echo $(a)
---
address@hidden junk]$ export a=pre; make
Makefile:3: *** Recursive variable `a' references itself (eventually). Stop.
Is this behavior by accident or design?
I was expecting (hoping) that they would be simply expanded by default
since this is more often what one wants.
- Greg Keraunen
- environmental variables are recursively expanded,
gk <=