[Top][All Lists]

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

Re: BATCH_MODE_ONLY_SHELL configuration fails with unixy shells

From: Eli Zaretskii
Subject: Re: BATCH_MODE_ONLY_SHELL configuration fails with unixy shells
Date: Tue, 30 Sep 2008 14:21:48 +0300

> From: "Russo, David" <address@hidden>
> Date: Mon, 29 Sep 2008 14:21:59 -0500
> There seems to be a bug in make 3.81 when make is configured with 
> BATCH_MODE_ONLY_SHELL enabled.  The problem only occurs when 
> BATCH_MODE_ONLY_SHELL is enabled, make determines the shell is "unixy", and a 
> recipe has a continuation line.
> If make determines that the shell is "unixy", the generated shell script used 
> to run a rule containing a continuation character will have one too many 
> '\'s.  For example, the following makefile fails:
> all:
>         echo this is\
> a test
> because the generated "batch" file used to run the echo command above is:
> echo this is\\
> a test
> This results in two commands being executed (by unixy shells); "echo" and 
> "a".  Clearly not what was intended.
> If I'm not mistaken, the fix is quite simple and I've attached a patch to a 
> description of the problem here: http://savannah.gnu.org/bugs/?24405.  I'd 
> appreciate any review/comments of the bug and the patch.

Thanks, I installed your changes in the Make CVS.

reply via email to

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