Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jan 1997 13:25:05 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        msmith@atrad.adelaide.edu.au (Michael Smith)
Cc:        hackers@freebsd.org
Subject:   Re: make(1) substitution question...
Message-ID:  <199701062025.NAA12384@phaeton.artisoft.com>
In-Reply-To: <199701020121.LAA14651@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Jan 2, 97 11:51:15 am

next in thread | previous in thread | raw e-mail | index | archive | help
> Can anyone suggest a way of making this DWIM without involving the shell?
> 
> FOO=	test
> BAR=	FOO
BAR= $(FOO)
> 
> target:
> 	echo ${${BAR}}
	echo $(BAR)

?

Otherwise, you need to invoke "eval" (techincally, you wouldn't be
invoking the shell, but the implementation whould actually invoke
it anyway...).


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701062025.NAA12384>