title: .ONESHELL not working properly in makefile
body: <p><strong><em>From the <a href="https://www.gnu.org/software/make/manual/html_node/Special-Targets.html#Special-Targets" rel="noreferrer">docs</a>:</em></strong></p>
  
  <blockquote>
    <p><code>.ONESHELL</code>
    <br>
    <br>
      If <code>.ONESHELL</code> is mentioned as a target, then when a target is
      built all lines of the recipe will be given to a single invocation
      of the shell rather than each line being invoked separately (*note
      Recipe Execution: Execution.).</p>
  </blockquote>
  
  <p><br>
  <br>
  <strong><em>So, a makefile, like:</em></strong></p>
  
  <pre class="lang-make prettyprint-override"><code>.ONESHELL :
  
  all ::
      echo 'foo
      bar'
  </code></pre>
  
  <p><strong><em>Running, I get:</em></strong></p>
  
  <pre class="lang-console prettyprint-override"><code>$ make
  echo 'foo
  /bin/sh: 1: Syntax error: Unterminated quoted string
  makefile:4: recipe for target 'all' failed
  make: [all] Error 2 (ignored)
  </code></pre>
  
  <p><br>
  <br></p>
  
  <p><strong><em>Trying, with almost the same makefile, but adding a <code>-</code> prefix to the recipe, to ignore errors, as <a href="https://www.gnu.org/software/make/manual/html_node/Errors.html#Errors" rel="noreferrer">documented</a>:</em></strong></p>
  
  <blockquote>
    <p>To ignore errors in a recipe line, write a '-' at the beginning of
    the line's text (after the initial tab).  The '-' is discarded before
    the line is passed to the shell for execution.</p>
  </blockquote>
  
  <p><br></p>
  
  <p><strong><em>The makefile, like:</em></strong></p>
  
  <pre class="lang-make prettyprint-override"><code>.ONESHELL :
  
  all ::
      -echo 'foo
      bar'
  </code></pre>
  
  <p><strong><em>Running, I get:</em></strong></p>
  
  <pre class="lang-console prettyprint-override"><code>$ make
  echo 'foo
  /bin/sh: 1: Syntax error: Unterminated quoted string
  makefile:4: recipe for target 'all' failed
  make: [all] Error 2 (ignored)
  bar'
  /bin/sh: 1: Syntax error: Unterminated quoted string
  makefile:4: recipe for target 'all' failed
  make: [all] Error 2 (ignored)
  </code></pre>
  
  <p><br>
  <br></p>
  
  <p>Why?</p>