1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Expand path to run separated test correctly

https://github.com/ruby/irb/commit/be2937abd5
This commit is contained in:
aycabta 2020-08-13 19:19:00 +09:00
parent 7fa86de15b
commit b3f84b4a5b

View file

@ -326,7 +326,7 @@ module IRB
config = Reline::Config.new
str = "ReidlineInputMethod with Reline #{Reline::VERSION}"
if config.respond_to?(:inputrc_path)
inputrc_path = config.inputrc_path
inputrc_path = File.expand_path(config.inputrc_path)
else
inputrc_path = File.expand_path(ENV['INPUTRC'] || '~/.inputrc')
end