[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Problem with FOR statements in command lines?
From: |
Matt Lavoie |
Subject: |
RE: Problem with FOR statements in command lines? |
Date: |
Mon, 27 Oct 2003 12:15:50 -0800 |
Could this be the result of a failure code getting back to gnumake from the
shell because there are no files to enumerate? That would explain why it
works when files are present. Try adding a minus prefix.
Just a thought...
-----Original Message-----
From: Scott Bussinger [mailto:address@hidden
Sent: Thursday, October 23, 2003 11:00 AM
To: address@hidden
Subject: Problem with FOR statements in command lines?
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
problem:
default:
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.
_______________________________________________
Make-w32 mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/make-w32
- Re: Problem with FOR statements in command lines?, (continued)
- Re: Problem with FOR statements in command lines?, Scott Bussinger, 2003/10/23
- Re: Problem with FOR statements in command lines?, Eli Zaretskii, 2003/10/24
- Re: Problem with FOR statements in command lines?, Earnie Boyd, 2003/10/26
- GNU make woes! [WAS:Re: Problem with FOR statements in command lines?], Manu, 2003/10/26
- Re: GNU make woes! [WAS:Re: Problem with FOR statements in command lines?], Paul D. Smith, 2003/10/27
- Re: GNU make woes! [WAS:Re: Problem with FOR statements in command lines?], Earnie Boyd, 2003/10/27
- Re: GNU make woes! [WAS:Re: Problem with FOR statements in command lines?], Paul D. Smith, 2003/10/27
- Re: Problem with FOR statements in command lines?, Eli Zaretskii, 2003/10/27
- Re: Problem with FOR statements in command lines?, Earnie Boyd, 2003/10/27
Re: Problem with FOR statements in command lines?, Greg Chicares, 2003/10/23
RE: Problem with FOR statements in command lines?,
Matt Lavoie <=