Running the current CVS version under Windows with the "-n" (--dry-run) 
option against the following example makefile:


all:
        @echo hello
        @echo there


...will leave two batch files in the TEMP directory each time it is run.  
Running without -n properly cleans up the files.

The problem appears to be that "construct_command_argv_internal" (job.c, 
lines 2769 and on) creates and writes batch files for shell commands 
regardless of the "-n" option.  However, with "-n", the shell is never 
invoked, and so the batch files are never cleaned up on process 
termination.  Note that this is not a recent regression; make-3.80 exhibits 
the same problem.

Should batch file creation be conditional on the "just_print_flag" value?

Related to this, could someone kindly explain why the above sample commands 
are passed via batch files at all, instead of by invoking "cmd /c echo 
hello" directly?

                                      -- Dave



_______________________________________________
Make-w32 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/make-w32

Reply via email to