From: naruse@... Date: 2019-01-17T21:47:06+00:00 Subject: [ruby-core:91146] [Ruby trunk Bug#15540] 2.6.0 Dir#glob regression Issue #15540 has been updated by naruse (Yui NARUSE). Backport changed from 2.4: DONTNEED, 2.5: DONTNEED, 2.6: REQUIRED to 2.4: DONTNEED, 2.5: DONTNEED, 2.6: DONE ruby_2_6 r66848 merged revision(s) 66838. ---------------------------------------- Bug #15540: 2.6.0 Dir#glob regression https://bugs.ruby-lang.org/issues/15540#change-76376 * Author: bughit (bug hit) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux] * Backport: 2.4: DONTNEED, 2.5: DONTNEED, 2.6: DONE ---------------------------------------- in an empty base folder create the following structure ``` . ��������� c ��������� d ������� ��������� a ������� ��������� a.file ������� ��������� b ������� ��������� b.file ������� ��������� c ������� ��������� c.file ��������� e ��������� a ��������� a.file ��������� b ��������� b.file ��������� c ��������� c.file ``` execute the following in the base folder: `ruby -v -e 'pp Dir["c/{d,e}/a/**/"]'` before 2.6 ``` ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux] ["c/d/a/", "c/d/a/b/", "c/d/a/b/c/", "c/e/a/", "c/e/a/b/", "c/e/a/b/c/"] ``` 2.6 ``` ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux] ["c/d/a/a.file", "c/d/a/b", "c/e/a/a.file", "c/e/a/b"] ``` ---Files-------------------------------- 0001-dir.c-fix-Dir.glob-with-braces-and-matching-dir.patch (1.74 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: