[Top][All Lists]

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

Problem with FOR statements in command lines?

From: Scott Bussinger
Subject: Problem with FOR statements in command lines?
Date: Thu, 23 Oct 2003 08:00:27 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312

I'm having a problem with a command line in a makefile using the mingw
make 3.80 on WinXP. I'm not using SH.EXE. Would someone please tell me
what I'm doing wrong here? Here's a simple test makefile that shows the

   for %%a in (s\*.bak) do echo %%a

All this makefile should do is list the *.bak files in the S
subdirectory. If I run this makefile however, I get an error message like:

V:\todo\test>gnumake -ftest
for %%a in (s\*.bak) do echo %%a
gnumake: *** [default] Error 2883645

In this case there were no *.bak files so there should have been no
output. Interestingly, if there are matching files it works OK. You can
run the same command (with only single % signs) from a command prompt
with no problem. What's the Error 2883645 mean?

Thanks! Be seeing you.

reply via email to

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