delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-Id: | <008a01c04960$458e0fc0$c1aa10ac@16.170.191> |
From: | "Fries" <Fries AT bdv DOT com> |
To: | <cygwin AT sources DOT redhat DOT com> |
References: | <3A08DB39 DOT 9675674C AT pobox DOT com> <20001108000106 DOT A1098 AT redhat DOT com> |
Subject: | Re: make and $(shell uname -a) |
Date: | Wed, 8 Nov 2000 09:45:38 +0100 |
Mime-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.00.2615.200 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
I think this e-mail is not for me. Please don´t send me such e-mails. Thanks. Jürgen Fries, BDV GmbH ----- Original Message ----- From: Christopher Faylor <cgf AT redhat DOT com> To: Cygwin mailing list <cygwin AT sources DOT redhat DOT com> Sent: Wednesday, November 08, 2000 6:01 AM Subject: Re: make and $(shell uname -a) > 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 > > > > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |