Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 8 Nov 2000 00:01:06 -0500 From: Christopher Faylor To: Cygwin mailing list Subject: Re: make and $(shell uname -a) Message-ID: <20001108000106.A1098@redhat.com> Reply-To: cygwin AT sources DOT redhat DOT com Mail-Followup-To: Cygwin mailing list References: <3A08DB39 DOT 9675674C AT pobox DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <3A08DB39.9675674C@pobox.com>; from john.turner@pobox.com on Tue, Nov 07, 2000 at 11:48:57PM -0500 On Tue, Nov 07, 2000 at 11:48:57PM -0500, John A. Turner wrote: >environment: > >o Win2kSP1 >o cygwin 1.1.5(0.29/3/2) 2000-11-02 >o MAKE_MODE unix > >the following makefile: > >------------------------------------------------ >SHELL = /usr/bin/bash > >foo = `/usr/bin/uname -a` >bar = $(shell /usr/bin/uname -a) > >test: > @echo "backticks work:" > @echo $(foo) > @echo "shell doesn't:" > @echo $(bar) >------------------------------------------------ > >generates: > >backticks work: >CYGWIN_NT-5.0 MIZU 1.1.5(0.29/3/2) 2000-11-02 02:01 i686 unknown >shell doesn't: >/usr/bin/bash: -c: line 1: syntax error near unexpected token `1.1.5(0' >/usr/bin/bash: -c: line 1: `echo CYGWIN_NT-5.0 MIZU 1.1.5(0.29/3/2) 2000-11-02 02:01 i686 unknown' >gmake: *** [test] Error 2 > >my question is, should $(shell) work? Do this: @echo "$(bar)" and it works fine. You're getting an error from bash indicating that it doesn't like the parentheses on the line with the echo. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com