delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/13/19:47:28

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
To: cygwin AT sourceware DOT cygnus DOT com
Subject: sh doesn't like make's quoting
From: Todd Greer <tgreer AT acm DOT org>
Date: 13 Oct 1999 18:46:48 -0500
Message-ID: <uvh8asu1j.fsf@nonsense.dy.natinst.com>
Lines: 33
X-Mailer: Gnus v5.7/Emacs 20.4

I looked in archives for this, but couldn't find help...

I'm having problems with 'echo "foo"' in a makefile, using a make I
built.  If someone can either tell me how to fix the problem or where
to get a recent make that will work, I would greatly appreciate it.

I recently compiled the latest version of make (3.78.1) because I want
the $(MAKECMDGOALS) feature that was introduced in 3.77.  (Cygwin
B20.1 has 3.75).  I used their build_w32.bat, which uses VC.

I #defined HAVE_CYGWIN_SHELL (and HAVE_CASE_INSENSITIVE_FS, though
that probably doesn't matter) in config.h_w32 and config.h (I assume
the latter is automatically generated from the former, but I put it in
just in case.)

The problem is a simple make action: 'echo "making all"' (The three \
newlines on the last three lines are for usenet--The CreateProcess
line is actually one line.

running make -d all yields, among much other output:
echo "making all"
Syntax error: Unterminated quoted string
make: *** [all] Error 2
CreateProcess(d:\cygnus\CYGWIN~1\H-I586~1\bin\sh.exe,\
d:/cygnus/CYGWIN~1/H-I586~1/bin/sh.exe\
 -c "echo \"making all\"",...)\

I'm guessing that the quoting is messed up.  It doesn't matter whether
MAKE_MODE is not set, unix, or win32. 

TIA for any help
-- 
Todd Greer	<tgreer AT acm DOT org>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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