ruby-changes:65234
From: aycabta <ko1@a...>
Date: Thu, 11 Feb 2021 20:27:46 +0900 (JST)
Subject: [ruby-changes:65234] d77a42fbfd (master): [ruby/irb] Suppress error when File::ALT_SEPARATOR is nil
https://git.ruby-lang.org/ruby.git/commit/?id=d77a42fbfd From d77a42fbfd60f4e4f49f1feb56e089494fbf3572 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Wed, 10 Feb 2021 23:24:39 +0900 Subject: [ruby/irb] Suppress error when File::ALT_SEPARATOR is nil https://github.com/ruby/irb/commit/96accf3b95 --- lib/irb/ext/loader.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/irb/ext/loader.rb b/lib/irb/ext/loader.rb index 90dcd70..42df0ac 100644 --- a/lib/irb/ext/loader.rb +++ b/lib/irb/ext/loader.rb @@ -40,7 +40,9 @@ module IRB # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/irb/ext/loader.rb#L40 if File::ALT_SEPARATOR File::SEPARATOR else - "[#{Regexp.quote(File::SEPARATOR + File::ALT_SEPARATOR)}]" + separators = File::SEPARATOR + separators += File::ALT_SEPARATOR if File::ALT_SEPARATOR + "[#{Regexp.quote(separators)}]" end ABSOLUTE_PATH_PATTERN = # :nodoc: case Dir.pwd -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/