Skip to content

Conversation

@sanfrecce-osaka
Copy link
Contributor

The -g option of history command was not working, so I fixed it. Local variable grep was always nil because the regular expression parsing options contained an unnecessary \n. test_history_grep did not detect this bug because it only asserted what was included in the output.

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.
@st0012 st0012 added the bug Something isn't working label Dec 29, 2024
Copy link
Member

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! Thanks for fixing it.

@st0012 st0012 merged commit a282bbc into ruby:master Dec 29, 2024
34 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Dec 29, 2024
(ruby/irb#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.

ruby/irb@a282bbc0cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants