Project

General

Profile

Bug #17629 » bug.rb

radarek (Radosław Bułat), 02/14/2021 01:28 PM

 
require 'readline'

# calling below code before adding item to history will make it work
Readline.readline('press enter to continue', false) if ENV['WORKAROUND'] == '1'

Readline::HISTORY << 'Line1'
puts "History: #{Readline::HISTORY.to_a}"
Readline.readline('> ', true)
(1-1/2)