make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Savannah bug #4364


From: psmith
Subject: Savannah bug #4364
Date: Tue, 29 Jul 2003 17:36:14 -0400

Can someone here take a look at this bug:

  https://savannah.gnu.org/bugs/?func=detailbug&bug_id=4364&group_id=71

and see what they think?  I can't reproduce it on UNIX so it must be a
Windows thing.


-------------------------------------------------------------------------------
You need a file named catargs.bat in your path somewhere to repro this,
with this line as its contents:
echo echo %1 %2 %3 %4 %5 %6 %7 %8 %9

Here is the makefile to repro the bugs:

.PHONY: test
test:
        catargs.bat perl -e "print \"foo;;\";" # make removes the ;;
        catargs.bat perl -e "my $$a = 4; print \"$$a\";" # make doesn't really 
escape the $


This produces the following results:

C:\checker\dev\test\make>make
catargs.bat perl -e "print \"foo;;\";"

C:\checker\dev\test\make>echo perl -e "print \"foo \";"
perl -e "print \"foo \";"
catargs.bat perl -e "my $a = 4; print \"$a\";"

C:\checker\dev\test\make>echo perl -e "my = 4; print \"\";"
perl -e "my = 4; print \"\";"

As you can see, what make actually sends to the program doesn't resemble
what it claims it's sending to the program, making it impossible to
execute some commands from inside make.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]