зеркало из https://github.com/github/ruby.git
[ruby/irb] Suppress error when File::ALT_SEPARATOR is nil
https://github.com/ruby/irb/commit/96accf3b95
This commit is contained in:
Родитель
c3b2bb0969
Коммит
d77a42fbfd
|
@ -40,7 +40,9 @@ module IRB # :nodoc:
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче