Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <042901bea6c4$a470cf90$351783d0@mike.qsicorp.com> Reply-To: "Michael K. Elwood" From: "Michael K. Elwood" To: Subject: Re: Make 3.77 $(shell) function problems Date: Tue, 25 May 1999 09:38:30 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 >I'm having a bit of trouble with cygwin Make 3.77. The $(shell ...) function >does not seem to be working properly. It's not returning the output of the >shell command. Here is a simple test makefile: > >shelltest = $(shell echo Hello) > >all: > @echo Shelltest = $(shelltest) > >When I run this using cygwin Make 3.77, I get: > >Shelltest = > >I tried this on one of our linux boxes using Make 3.76.1, and I get: > >Shelltest = Hello Apologies for replying to my own post, but I have some additional information. This problem only seems to occur in the mingw32 make (version 3.77 from JanJaap's site). The cygwin make (my current installation has make 3.75) does not show this behavior. Putting single quotes around the shell command (i.e. $(shell 'echo Hello'), as someone suggested) did not help, but it did cause make to emit the following error message: process_begin: CreateProcess((null), "echo Hello", ...) failed. make: *** expand_function: unable to launch process (e=2) . Stop. Best regards, MKE -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com