delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/01/10:42:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <40BC968B.1070309@yahoo.fr>
Date: Tue, 01 Jun 2004 16:45:31 +0200
From: bertrand marquis <bertrand_marquis AT yahoo DOT fr>
Reply-To: bertrand_marquis AT yahoo DOT fr
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.2.1) Gecko/20030225
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: problem with make under cygwin
References: <40BC3795 DOT 7030902 AT sysgo DOT com> <20040601143830 DOT GB31443 AT coe DOT casa DOT cgf DOT cx>
In-Reply-To: <20040601143830.GB31443@coe.casa.cgf.cx>
X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on donald.sysgo.com
X-Spam-Level:
X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=no version=2.61
X-AntiVirus: checked by AntiVir MailGate (version: 2.0.1.16; AVE: 6.25.0.60; VDF: 6.25.0.81; host: mailgate.sysgo.de)
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i51EgBf9022820

thanks

i found also that passing -n to echo solve the problem ???? :

HAVE_DEVFS := $(shell grep 'CONFIG_DEVFS_FS=y' ../../linux/.config &> 
/dev/null && echo -n "yes" || echo -n "no")

but thank you, your solution is so much better



Christopher Faylor a écrit:

>On Tue, Jun 01, 2004 at 10:00:21AM +0200, bertrand marquis wrote:
>  
>
>>Hello
>>
>>  i'm having a strange problem with the make command and shell.
>>
>>i try to run a makefile with this :
>>HAVE_DEVFS := $(shell grep 'CONFIG_DEVFS_FS=y' ../../linux/.config &> 
>>/dev/null && echo "yes" || echo "no")
>>
>>the shell command is working out of a makefile but in the makefile the 
>>HAVE_DEVFS variable only contain the output of the grep command. Does 
>>anyone know why it doesn't work ?
>>    
>>
>
>make uses /bin/sh.  /bin/sh doesn't understand the >& construct.  It
>is not portable.
>
>Use
>
>HAVE_DEVFS := $(shell grep 'CONFIG_DEVFS_FS=y' ../../linux/.config >/dev/null 2>&1 && echo "yes" || echo "no")
>
>instead.
>
>cgf
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Problem reports:       http://cygwin.com/problems.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>
>  
>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019