| www.delorie.com/archives/browse.cgi | search |
| 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 |
| Date: | Tue, 1 Jun 2004 10:38:30 -0400 |
| From: | Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: problem with make under cygwin |
| Message-ID: | <20040601143830.GB31443@coe.casa.cgf.cx> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <40BC3795 DOT 7030902 AT sysgo DOT com> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <40BC3795.7030902@sysgo.com> |
| User-Agent: | Mutt/1.4.1i |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |