On Tue, Dec 20, 2011 at 03:44:11PM +0100, Francois Pussault wrote:

> Hi
> 
> add the following
> lines to the bottom of your .kshrc file in your /root directory:
> 
> set -o emacs
> alias __A=$(print '\0020') # ^P = up = previous command
> alias __B=$(print '\0016') # ^N = down = next command
> alias __C=$(print '\0006') # ^F = right = forward a character
> alias __D=$(print '\0002') # ^B = left = back a character
> alias __H=$(print '\0001') # ^A = home = beginning of line
> 
> this should resolv the issue...

The aliases are not neccesary. I suspect root's shell is in vi mode.
Check with set -o

        -Otto

> 
> or you can prefer to use vi mode
> 
> then esc-K will give you last command.
> 
> > ----------------------------------------
> > From: johnw <johnw.m...@gmail.com>
> > Sent: Tue Dec 20 15:32:30 CET 2011
> > To: <misc@openbsd.org>
> > Subject: can not use the up key to last command at root?
> >
> >
> > my system is i386/current, i do not know why and when,
> > today, i noticed i can not use the up key to last command at root anymore.
> >
> > i can use the up key to last command at non root user,
> > both is use ksh.
> >
> > any idea?
> >
> > please help and thank you.
> >
> 
> 
> Cordialement
> Francois Pussault
> 3701 - 8 rue Marcel Pagnol
> 31100 ToulouseB 
> FranceB 
> +33 6 17 230 820 B  +33 5 34 365 269
> fpussa...@contactoffice.fr

Reply via email to