What is the difference between files .irb-historyand .irb_historyin Ruby?
.irb-history
.irb_history
Depending on your versions "#{ENV['HOME']}/.irb-history"or the "#{ENV['HOME']}/.irb_history"files contain a list of all the lines that were entered in irb, you can do cat ~/.irb-historyto see the contents, and the file irbrc.rbwill also give your details of the movement into it.
"#{ENV['HOME']}/.irb-history"
"#{ENV['HOME']}/.irb_history"
cat ~/.irb-history
irbrc.rb
Which line editing library do you associate with Ruby?
I believe that if you create ruby using readline GNU, it will use .irb-history and if you communicate with libedit (if Ruby configure cannot find readline), it uses .irb_history.