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

Memoize path of .inputrc #320

Merged
merged 1 commit into from
Sep 5, 2021
Merged

Memoize path of .inputrc #320

merged 1 commit into from
Sep 5, 2021

Conversation

osyo-manga
Copy link
Contributor

Fix #319.
When ENV["HOME"] = "foo" on irb, an exception is raised when retrieving the path of .inputrc.
Memoize the path of .inputrc and don't get the path after the second time.

When `ENV["HOME"] = "foo"` on irb, an exception is raised when retrieving the path of `.inputrc`.
Memoize the path of `.inputrc` and don't get the path after the second time.
@aycabta aycabta merged commit 0291be5 into ruby:master Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

IRB crashes when ENV ['HOME']` is assigned a string that does not start with a slash.
2 participants