From owner-freebsd-hackers Mon Jan 6 12:34:45 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA26119 for hackers-outgoing; Mon, 6 Jan 1997 12:34:45 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id MAA26114 for ; Mon, 6 Jan 1997 12:34:43 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA12384; Mon, 6 Jan 1997 13:25:05 -0700 From: Terry Lambert Message-Id: <199701062025.NAA12384@phaeton.artisoft.com> Subject: Re: make(1) substitution question... To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Mon, 6 Jan 1997 13:25:05 -0700 (MST) Cc: hackers@freebsd.org In-Reply-To: <199701020121.LAA14651@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Jan 2, 97 11:51:15 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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.