bug-make
[Top][All Lists]
Advanced

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

[bug #30714] List of shell commands is outdated/Fallback to shell


From: Eli Zaretskii
Subject: [bug #30714] List of shell commands is outdated/Fallback to shell
Date: Wed, 11 Aug 2010 02:56:44 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322)

Follow-up Comment #8, bug #30714 (project make):

"Now imagine that somebody writes a recipe, thinking that it would be parsed
by shell (as documentation suggests). He creates for example a script named
foo.bat which is being called by the recipe. What he does not know is that
someone else created foo.bat in make's directory and this will be the script
which will be called by CreateProcess. It's a very hard bug to track down for
a Makefile developer, undocumented and non-intuitive. And this is not how the
shell would behave."

But this is normal behavior on Windows.

"The second thing I've seen today is that even when a command is recognized
as a built-in, it still will not honor $(SHELL) variable. This is because a
batch file is created with the recipe line and this batch file is called
directly, without using $(SHELL), so this will be loaded and evaluated by the
system, with the default shell. This is wrong again."

Why is this wrong?




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30714>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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