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

History is not saved with nested IRB sessions #659

Closed
st0012 opened this issue Jul 31, 2023 · 0 comments · Fixed by #652
Closed

History is not saved with nested IRB sessions #659

st0012 opened this issue Jul 31, 2023 · 0 comments · Fixed by #652
Assignees
Labels
bug Something isn't working

Comments

@st0012
Copy link
Member

st0012 commented Jul 31, 2023

# test.rb
class Foo
  def self.bar
    binding.irb
  end
end
binding.irb
$ cat ~/.irb_history
cat: /Users/hung-wulo/.irb_history: No such file or directory
$ be ruby test.rb

From: test.rb @ line 7 :

    2: class Foo
    3:   def self.bar
    4:     binding.irb
    5:   end
    6: end
 => 7: binding.irb

irb(main):001:0> 111
=> 111
irb(main):002:0> Foo.bar

From: test.rb @ line 4 :

    1: # test.rb
    2: class Foo
    3:   def self.bar
 => 4:     binding.irb
    5:   end
    6: end
    7: binding.irb

irb(Foo):001:0> 222
=> 222
irb(Foo):002:0> exit
=> nil
irb(main):003:0> 333
=> 333
irb(main):004:0> exit
$ cat ~/.irb_history
cat: /Users/hung-wulo/.irb_history: No such file or directory
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 a pull request may close this issue.

1 participant