Follow-up Comment #4, bug #40241 (project make): Besides the fact that your patch would leak the strdup'ed string, it doesn't work:
$ ./Release/make_msvc.net2003.exe -f test.mk --trace test.mk:2: target 'foo' does not exist echo foo foo /usr/bin/touch foo /usr/bin/sh: (/w foo: No such file or directory test.mk:2: recipe for target 'foo' failed make_msvc.net2003: *** [foo] Error 127 (test.mk is the same as in comment #2, but with an additional "echo foo" in the recipe) Note without the "echo foo", the error message is borked: $ ./Release/make_msvc.net2003.exe -f test.mk --trace test.mk:2: target 'foo' does not exist /usr/bin/touch foo /usr/bin/sh: Ó<.wÿ: No such file or directory test.mk:2: recipe for target 'foo' failed make_msvc.net2003: *** [foo] Error 127 Which suggests unintialized memory use or something alike. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?40241> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make