https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112019-07-25T17:24:49ZRuby Issue Tracking SystemRuby master - Bug #12643: When generating exts.mk need to escape newlines for @echohttps://redmine.ruby-lang.org/issues/12643?journal_id=800122019-07-25T17:24:49Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>This appears to be fixed in the master branch, which currently does:</p>
<pre><code> err and err.scan(/.+/) do |ee|
mf.puts %Q<\t@echo "\t#{ee.gsub(/["`$^]/, '\\\\\\&')}">
end
</code></pre>
<p>Since <code>/.+/</code> is not a multiline regular expression, newlines should not be included in <code>ee</code>.</p>