[#83096] File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?}) — Nobuyoshi Nakada <nobu@...>
On 2017/10/04 8:47, normal@ruby-lang.org wrote:
5 messages
2017/10/04
[#83100] Re: File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?})
— Eric Wong <normalperson@...>
2017/10/04
Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
[#83105] Re: File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?})
— Nobuyoshi Nakada <nobu@...>
2017/10/04
On 2017/10/04 15:55, Eric Wong wrote:
[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>
Hello,
9 messages
2017/10/04
[#83113] Re: Alias Enumerable#include? to Enumerable#includes?
— "Urabe, Shyouhei" <shyouhei@...>
2017/10/05
This has been requested countless times, then rejected each and every time.
[#83129] Re: Alias Enumerable#include? to Enumerable#includes?
— Alberto Almagro <albertoalmagro@...>
2017/10/05
Sorry I didn't found it on the core mail list's archive.
[#83138] Re: Alias Enumerable#include? to Enumerable#includes?
— "Urabe, Shyouhei" <shyouhei@...>
2017/10/06
Ruby has not been made of popular votes so far. You have to show us
[#83149] Re: Alias Enumerable#include? to Enumerable#includes?
— Eric Wong <normalperson@...>
2017/10/06
Alberto Almagro <albertoalmagro@gmail.com> wrote:
[#83200] [Ruby trunk Feature#13996] [PATCH] file.c: apply2files releases GVL — normalperson@...
Issue #13996 has been reported by normalperson (Eric Wong).
4 messages
2017/10/10
[ruby-core:83343] [Ruby trunk Bug#14027] Ripper parses squiggly heredoc incorrectly
From:
martyn.jago@...
Date:
2017-10-18 15:15:02 UTC
List:
ruby-core #83343
Issue #14027 has been reported by mjago (Martyn Jago).
----------------------------------------
Bug #14027: Ripper parses squiggly heredoc incorrectly
https://bugs.ruby-lang.org/issues/14027
* Author: mjago (Martyn Jago)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.5.0dev (2017-10-18 trunk 60205) [x86_64-darwin13]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Where you have two or more embedded expressions on the same line within a squiggly heredoc
seperated by whitespace, Ripper considers that whitespace as ignored space despite it not being at the
beginning of a line. Below is a diff of lexer output between identical heredoc and squiggly heredoc to highlight:
~~~ diff
[[[1, 0], :on_ignored_nl, "\n", EXPR_BEG],
- [[2, 0], :on_heredoc_beg, "<<-E", EXPR_BEG],
+ [[2, 0], :on_heredoc_beg, "<<~E", EXPR_BEG],
[[2, 4], :on_nl, "\n", EXPR_BEG],
[[3, 0], :on_embexpr_beg, "\#{", EXPR_BEG],
[[3, 2], :on_int, "3", EXPR_END|EXPR_ENDARG],
[[3, 3], :on_embexpr_end, "}", EXPR_END],
- [[3, 4], :on_tstring_content, " ", EXPR_BEG],
+ [[3, 4], :on_ignored_sp, " ", EXPR_BEG],
[[3, 5], :on_embexpr_beg, "\#{", EXPR_BEG],
[[3, 7], :on_sp, " ", EXPR_BEG],
[[3, 8], :on_int, "4", EXPR_END|EXPR_ENDARG],
[[3, 9], :on_sp, " ", EXPR_END|EXPR_ENDARG],
[[3, 10], :on_embexpr_end, "}", EXPR_END],
[[3, 11], :on_tstring_content, "\n", EXPR_BEG],
[[4, 0], :on_heredoc_end, "E", EXPR_BEG]]
~~~
Also the sexp shows the whitespace as an empty string:
~~~ diff
[:program,
[[:string_literal,
[:string_content,
[:string_embexpr, [[:@int, "1", [2, 2]]]],
- [:@tstring_content, " ", [2, 4]],
+ [:@tstring_content, "", [2, 7]],
[:string_embexpr, [[:@int, "2", [2, 9]]]],
[:@tstring_content, "\n", [2, 11]]]]]]
~~~
This can be seen on head, 2.4.2, and 2.3.5
Scripts used:
```
ruby -rripper -rpp -e '%{<<-E\n\#{1} \#{2}\nE}'
ruby -rripper -rpp -e '%{<<~E\n\#{1} \#{2}\nE}'
```
--
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>