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.
; 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
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
> >
> 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.
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
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
* 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,
>
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
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
9 matches
Mail list logo