This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

sh doesn't like make's quoting


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@acm.org>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]