help-make
[Top][All Lists]
Advanced

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

Re: delete large list of files


From: Eli Zaretskii
Subject: Re: delete large list of files
Date: Mon, 04 Apr 2011 23:39:47 +0300

> Date: Mon, 04 Apr 2011 14:57:48 -0500
> From: Raleigh Rinehart <address@hidden>
> 
> Indeed, this is the very issue I am trying to work around.  The limit 
> seems to be much higher that 256, but It doesn't seem to match the 
> microsoft docs of 32K (for CreateProcess) either.

I can reliably get 32K long command lines when I invoke commands from
Make on Windows.

> I'm guessing it is around the limits of cmd.exe's 8192 chars.

That's if you go via the shell.  But GNU Make does not go through the
shell if it can invoke the command (rm.exe in this case) directly.

Perhaps you should go back to trying a single "rm files..." command,
if this is the problem for which you went to this chunky solution.

> Unfortunately, using xargs won't work either.  To do that we would need 
> to write the list of things, files in this instance, to a text file, 
> which of course brings back around to the first problem.  There is no 
> way that I have found to get the list of things, out of make in one 
> chunk (on win32).  Hence the rather esoteric function to break the list 
> up into smaller pieces.

How long is the original full list of files?



reply via email to

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