Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <37B8DA9C.309F7BEC@bigfoot.com> Date: Tue, 17 Aug 1999 15:44:28 +1200 From: Kevin Hill X-Mailer: Mozilla 4.06 [en] (WinNT; I) MIME-Version: 1.0 To: cygwin AT sourceware DOT cygnus DOT com, tad AT comco DOT com Subject: Re[2]: Make quoted strings problem running from cmd.exe... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Dear Tad/Reader, Thanks. I hear what you are saying, but spurred on by your suggestion I have asked both make and Microsoft's nmake to use my CmdLineLook executable as the shell. The results are interesting, as follows: #-- Invocation of shell from GNUmake... 0 -F:/GAP/N......(reduced for readability)/CmdLineLook.exe- 1 -/c- 2 -CmdLineLook -i "BEGIN- 3 -{- 4 -$^W=1;- 5 -}"- # ------------------------------------ #-- Invocation of shell from nmake... 0 -F:\GAP\....(reduced for readability)\CmdLineLook.exe- 1 -/c- 2 -CmdLineLook- 3 --i- 4 -BEGIN { $^W=1; }- # ------------------------------------ Which of these looks correct? To me, the latter (nmake) one is what I would expect, where it parcels up the quoted text as one parameter. The splitting up in GNUmake is, to me, completely random. Any theories? K. ____________________Reply Separator____________________ Subject: Re: Make quoted strings problem running from cmd.exe... Author: tad AT comco DOT com Date: 17/08/99 14:40 Kevin Hill wrote: > > Dear reader, > > I have Cygwin b20.1 (including make version 3.75) and NT4.0 sp4. I am > trying to use make from within the normal cmd.exe of NT, rather than > from within any of the cygwin shells. The problem I have ONLY happens > when I run from cmd.exe; it works find from within sh. ....... Don't blame it on make - it is cmd.exe doing. Once shell parses the inputline, make does what it can. cmd.exe is too stupid to properly interpret quotes "" like true shell. Write small code and test VC++ and Cygwin gcc and see what actually is processed by cmd/shell and what comes to your code. I suspect that cmd passes quotes, and nmake compensates for it. It is consistent with DOS/NT/Win32 philosophy where each program is responsible for interpreting *.*, and cmd.exe simply passes them down. -- Tadeusz :: The public opinion should be alarmed by its own nonexistence :: (512)467-0618 ext. 526 :: Stanislaw J. Lec, trans. TJL -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com