bug-make
[Top][All Lists]
Advanced

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

[bug #56449] job.c (construct_command_argv_internal): Must use shell if


From: Eli Zaretskii
Subject: [bug #56449] job.c (construct_command_argv_internal): Must use shell if '%' character is present in recipe line
Date: Wed, 28 Aug 2019 15:24:21 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #6, bug #56449 (project make):

But the result is wrong when %..% doesn't specify a known variable, most
probably because we invoke the command through a batch file.

Try this from cmd.exe prompt:

 > echo %foo%

You will see %foo%.

Now try with make:

  D:\usr\eli>\gnu\make-4.2.90-guile\GccRel\gnumake -f-
  SHELL=cmd.exe

  all:
          @echo %foo%
  ^Z
  ECHO is off.

In other words, 'echo' was invoked with an empty string, which is not what we
want.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56449>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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