Re: make(1): should := expand twice?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joachim Schipper
Date: Thursday, May 20, 2010 - 2:58 am

On Thu, May 20, 2010 at 11:11:51AM +0200, Joachim Schipper wrote:

An addendum to the above: := really does expand exactly twice (and not
"until done"), although this is not obvious from the above. Consider:

A=$$B
B=b
FOO=$$A
BAR:=$$A

test:
        echo '${FOO}'
        echo '${BAR}'

This results in (with our make):

echo '$A'
$A
echo '$B'
$B

		Joachim
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
make(1): should := expand twice?, Joachim Schipper, (Thu May 20, 2:11 am)
Re: make(1): should := expand twice?, Joachim Schipper, (Thu May 20, 2:58 am)
Re: make(1): should := expand twice?, Joachim Schipper, (Tue May 25, 2:13 pm)
Re: make(1): should := expand twice?, Philip Guenther, (Wed May 26, 9:15 pm)
Re: make(1): should := expand twice?, Joachim Schipper, (Thu May 27, 2:13 am)
Re: make(1): should := expand twice?, Marc Espie, (Thu May 27, 5:22 am)
Re: make(1): should := expand twice?, Marc Espie, (Sun Jun 6, 9:16 am)