[ruby/irb] Suppress error when File::ALT_SEPARATOR is nil
https://github.com/ruby/irb/commit/96accf3b95
This commit is contained in:
parent
c3b2bb0969
commit
d77a42fbfd
@ -40,7 +40,9 @@ module IRB # :nodoc:
|
|||||||
if File::ALT_SEPARATOR
|
if File::ALT_SEPARATOR
|
||||||
File::SEPARATOR
|
File::SEPARATOR
|
||||||
else
|
else
|
||||||
"[#{Regexp.quote(File::SEPARATOR + File::ALT_SEPARATOR)}]"
|
separators = File::SEPARATOR
|
||||||
|
separators += File::ALT_SEPARATOR if File::ALT_SEPARATOR
|
||||||
|
"[#{Regexp.quote(separators)}]"
|
||||||
end
|
end
|
||||||
ABSOLUTE_PATH_PATTERN = # :nodoc:
|
ABSOLUTE_PATH_PATTERN = # :nodoc:
|
||||||
case Dir.pwd
|
case Dir.pwd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user