-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Because IRB relies on IRB.conf[:AT_EXIT] config, which will be run in at_exit, to save a session's input history. When users exit the session with exit!, the input is not written.
Reproduction Steps
-
Open an IRB session and run
irb(main):001:0> a = 1 => 1 irb(main):002:0> b = 2 => 2 irb(main):003:0> exit -
Open another session and type up-arrow to check the above history
-
In the same session, run
irb(main):001:0> c = 3 => 3 irb(main):002:0> d = 4 => 4 irb(main):003:0> exit! # with a ! this time -
Open another session and type up-arrow to view history
Expected Behaviour
Input from step 3 should be part of the history
Actual Behaviour
Input from step 3 is lost
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working