can not use the up key to last command at root?

2011-12-20 Thread johnw
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.

Re: can not use the up key to last command at root?

2011-12-20 Thread Francois Pussault
; From: johnw > Sent: Tue Dec 20 15:32:30 CET 2011 > To: > 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 c

Re: can not use the up key to last command at root?

2011-12-20 Thread Otto Moerbeek
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 > >

Re: can not use the up key to last command at root?

2011-12-20 Thread johnw
> The aliases are not neccesary. I suspect root's shell is in vi mode. > Check with set -o > > -Otto Yes, i have this one in ~/.kshrc, export EDITOR=vim. delete this can solve the problem. thank all.

Re: can not use the up key to last command at root?

2011-12-21 Thread Stuart Henderson
On 2011-12-20, johnw wrote: >> The aliases are not neccesary. I suspect root's shell is in vi mode. >> Check with set -o >> >> -Otto > > > Yes, i have this one in ~/.kshrc, > export EDITOR=vim. > delete this can solve the problem. > > thank all. > If you still want to use vim (or any editor

Re: can not use the up key to last command at root?

2011-12-21 Thread David Coppa
On Wed, Dec 21, 2011 at 10:41 AM, Stuart Henderson wrote: > On 2011-12-20, johnw wrote: >>> The aliases are not neccesary. I suspect root's shell is in vi mode. >>> Check with set -o >>> >>> -Otto >> >> >> Yes, i have this one in ~/.kshrc, >> export EDITOR=vim. >> delete this can solve the p

Re: can not use the up key to last command at root?

2011-12-21 Thread Alexander Polakov
* David Coppa [111221 14:09]: > On Wed, Dec 21, 2011 at 10:41 AM, Stuart Henderson > wrote: > > On 2011-12-20, johnw wrote: > >>> The aliases are not neccesary. I suspect root's shell is in vi mode. > >>> Check with set -o > >>> > >>> -Otto > >> > >> > >> Yes, i have this one in ~/.kshrc, >

Re: can not use the up key to last command at root?

2011-12-21 Thread Stuart Henderson
On 2011-12-21, Alexander Polakov wrote: > * David Coppa [111221 14:09]: >> On Wed, Dec 21, 2011 at 10:41 AM, Stuart Henderson >> wrote: >> > On 2011-12-20, johnw wrote: >> >>> The aliases are not neccesary. I suspect root's shell is in vi mode. >> >>> Check with set -o >> >>> >> >>> -Otto

Re: can not use the up key to last command at root?

2011-12-21 Thread Frédéric Perrin
On 21.12.2011 23:36, Stuart Henderson wrote: On 2011-12-21, Alexander Polakov wrote: Isn't "set -o emacs" at the end of ~/.kshrc enough? It's not passed through if you do e.g. sudo -s Which is why you should use `sudo -i'. -- Fred -- http://tar-jx.bz