[ruby/irb] Fix broken history command with -g (https://github.com/ruby/irb/pull/1057)
history
Local variable grep was always nil because the regular expression parsing options contained an unnecessary \n. test_history_grep did not detect this because it only asserted what was included in the output.
grep
\n
test_history_grep
https://github.com/ruby/irb/commit/a282bbc0cf
[ruby/irb] Fix broken
history
command with -g(https://github.com/ruby/irb/pull/1057)
Local variable
grep
was always nil because the regular expression parsing options contained an unnecessary\n
.test_history_grep
did not detect this because it only asserted what was included in the output.https://github.com/ruby/irb/commit/a282bbc0cf