in reply to Previous commands in Ubuntu terminal

I think you're confusing perl and cpan. IIRC in order to use the arrow keys to cycle through the history of cpan commands you have one of either Term::ReadLine::Perl or Term::ReadLine::Gnu installed. Double check the cpan documentation.

  • Comment on Re: Previous commands in Ubuntu terminal

Replies are listed 'Best First'.
Re^2: Previous commands in Ubuntu terminal
by Anonymous Monk on Jun 26, 2010 at 17:17 UTC
    I don't see cpan being mentioned anywhere in the OP. I suppose he's talking about accessing the regular shell's command history. Without more details it's hard to tell what the problem is, though. As ^[[A is the normal escape sequence generated by many terminals for the up key, it's probably a misconfiguration of the shell that's causing the problem.

      I didn't see cpan mentioned either, however since Ubuntu uses bash 'out of the box' the up arrow key works fine for command recall. While I agree that a broken shell is a possability I'd expect not the OP to have asked for help accessing previous commands rather than 'previous Perl' as explicitly stated. The modules I mentioned don't ship with with perl/ubuntu as default. Weither it's cpan related or as LanX suggests perl debugger, the advice I've given is accurate. However, as you quite accuratly state, without knowing exactly what the OP is really asking for, it could be several things.

Re^2: Previous commands in Ubuntu terminal
by LanX (Saint) on Jun 26, 2010 at 20:02 UTC
    >I think you're confusing perl and cpan.

    IMHO sounds like perldebugger as shell, i.e. perl -de0

    >Term::ReadLine::Perl or Term::ReadLine::Gnu

    agreed!

    Cheers Rolf