You need to install Term::ReadLine::Perl and/or Term::ReadLine::Gnu. The Term::ReadLine that is in the core is only a stub, and doesn't give you command history.
If you go into the CPAN shell and install Bundle::CPAN, this is included in the essential goodies.
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ? (Missquoting Janis Joplin)
| [reply] [Watch: Dir/Any] |
what shell does RedHat default you to? What shell were you running with Debian? I suspect it has something to do with that. | [reply] [Watch: Dir/Any] |
I am using the bash shell in both instances. The arrow keys work just fine from the shell command line (I get command history scrolling with up and down arrows), and within other programs like emacs. I just realized however that I get the same problem when I use perl -MCPAN -e shell. I installed Term::ReadKey, and Term::ReadLine was already up to date.
| [reply] [Watch: Dir/Any] |
Probably something is wrong with your Term::ReadKey or Term::ReadLine installations. When you installed them, did they pass all of the tests? Were they installed somewhere where Perl knows to look for them? What do you get if you type:
perl -MTerm::ReadKey -le 'print $Term::ReadKey::VERSION'
perl -MTerm::ReadLine -le 'print $Term::ReadLine::VERSION'
| [reply] [Watch: Dir/Any] [d/l] |