Skip Menu |

This queue is for tickets about the Devel-REPL CPAN distribution.

Report information
The Basics
Id: 57154
Status: resolved
Priority: 0/
Queue: Devel-REPL

People
Owner: Nobody in particular
Requestors: chm [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.003009
Fixed in: (no value)



Subject: Devel::REPL::Plugin::ReadLineHistory does not save/load histfile
Hi- I've been trying to get ReadLineHistory to work in my PDL shell development. Unfortunately, I have had no luck in getting the shell to read the history file on startup, nor to save the file on exit. Some observations: * ~/ expansion is not supported (I plan to add this as we have implemented it a la bash in the current perldl shell). It would have helped if an error had been thrown or if the docs indicated this. * Running the various ReadHistory, WriteHistory, and GetHistory worked fine inside the re.pl shell, just not automatically. * I currently do a $repl->load_plugin('ReadLineHistory') in my profile startup and am beginning to wonder if that is supposed to work. Suggestions on start-up would be appreciated. Thanks, Chris
On Sun May 02 22:26:29 2010, CHM wrote: Show quoted text
> > I've been trying to get ReadLineHistory to work in my > PDL shell development. Unfortunately, I have had no > luck in getting the shell to read the history file on > startup, nor to save the file on exit.
I'm thinking the problem might be that I need to load_plugin in a BEGIN block so that it happens before the run takes place.
I tracked down the problem with ReadLineHistory not saving the history file on close. I was using exit to quit the shell. Unfortunately, exit did not just "quit" the shell, it blew it away completely. If I use Ctrl-D to exit the shell, then the history file is correctly saved. I think it is a bug that typing exit in the REPL kills the shell---it should kill the program running in the shell but the shell itself should exit cleanly. --Chris