[#85940] [Ruby trunk Bug#14578] Forking a child process inside of a mutex crashes the ruby interpreter — ben.govero@...
Issue #14578 has been reported by bengovero (Ben Govero).
3 messages
2018/03/05
[#86205] [Ruby trunk Feature#14618] Add display width method to String for CLI — aycabta@...
Issue #14618 has been reported by aycabta (aycabta .).
3 messages
2018/03/19
[#86366] Re: [ruby-cvs:70102] usa:r63008 (trunk): get rid of test error/failure on Windows introduced at r62955 — Eric Wong <normalperson@...>
usa@ruby-lang.org wrote:
3 messages
2018/03/28
[ruby-core:85989] [Ruby trunk Bug#14584] Squigly heredoc with interpolation that has a string literal withe spaces gets incorrect value
From:
s@...
Date:
2018-03-08 01:43:28 UTC
List:
ruby-core #85989
Issue #14584 has been updated by sikachu (Prem Sichanugrist).
👍 I can confirm this bug exists in 2.5.0p0.
Also, it seems like the number of spaces it's removing is based on the gutter size as well (which is expected?)
~~~ ruby
# two spaces gutter, four leading spaces in literal
<<~FOO
two#{" four "}
FOO
#=> "two four \n"
# two spaces gutter, five leading spaces in literal
<<~FOO
two#{" five "}
FOO
#=> "two five \n"
# three spaces gutter, five leading spaces in literal
<<~FOO
three#{" five "}
FOO
#=> "three five \n"
~~~
I don't have enough Ruby lexer knowledge to fix this, so I hope someone will be able to spare their time taking care of this 🙇♂️
----------------------------------------
Bug #14584: Squigly heredoc with interpolation that has a string literal withe spaces gets incorrect value
https://bugs.ruby-lang.org/issues/14584#change-70854
* Author: asterite (Ary Borenszweig)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
Given this program:
~~~
text1 = <<~FOO
one#{" two "}
FOO
text2 = <<~FOO
one#{" two "}
FOO
p text1
p text2
~~~
The output is:
~~~
"one two \n"
"one two \n"
~~~
The two should be equal.
I think the problem happens because squigly heredoc will remove the first two spaces from each line in the heredoc, but it seems to also be removing it from literals inside interpolation inside a heredoc.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>