Subject: | exit exits shell, not just program in shell |
The problem is that Devel::REPL itself will exit
when exit is run within the shell. I'm not sure
if the solution here is to override the exit call
itself or to put it an END {} block to handle
clean up after the exit.
For Devel::REPL::Plugin::ReadLineHistory, it is
clear that at least the history file needs to be
saved after the exit but before the REPL exits.
Maybe the exit call should be replaced by a die
that indicates it is an exit call. That could
be caught by the eval of the shell.