Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken history command with -g #1057

Merged
merged 1 commit into from
Dec 29, 2024

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
Development

Successfully merging this pull request may close these issues.

2 participants