i just do the following:
clear
/bin/sh
EDITOR=vi
export EDITOR
set -o $EDITOR
echo 1
echo 2
echo 3
echo 4
I tested the command sequence you gave and the result was as you
explained. What caught my attention, however, was that all the
commands were builtin. I tested with non-builtin commands (e
> i just do the following:
>
> clear
> /bin/sh
> EDITOR=vi
> export EDITOR
> set -o $EDITOR
> echo 1
> echo 2
> echo 3
> echo 4
>
>
I tested the command sequence you gave and the result was as you
explained. What caught my attention, however, was that all the
commands were builtin. I tested with n
I wasn't able to reproduce what you explained...maybe I missed something?
i just do the following:
clear
/bin/sh
EDITOR=vi
export EDITOR
set -o $EDITOR
echo 1
echo 2
echo 3
echo 4
and this is the output:
test# /bin/sh
test# EDITOR=vi
export EDITOR
set -o $EDITOR
echo 1
echo 2
echo 3
echo 4
t
I wasn't able to reproduce what you explained...maybe I missed something?
Bahman
On 8/28/07, [EMAIL PROTECTED]@mgedv.net <[EMAIL PROTECTED]> wrote:
>
> > As far as I know, ESC-. (in fact hitting '.' when in command mode)
> > repeats your very last action whether it was an editing action or
> > ex
As far as I know, ESC-. (in fact hitting '.' when in command mode)
repeats your very last action whether it was an editing action or
executing a command.
yes, that's true for vi, but not for /bin/sh in vi-mode. at least
on my 6.2-RELEASE.
;)
___
fre
As far as I know, ESC-. (in fact hitting '.' when in command mode)
repeats your very last action whether it was an editing action or
executing a command.
Bahman
On 8/27/07, [EMAIL PROTECTED]@mgedv.net <[EMAIL PROTECTED]> wrote:
> hi folks,
>
> when someone uses set -o vi to put /bin/sh into vi-mo
hi folks,
when someone uses set -o vi to put /bin/sh into vi-mode
for command line editing, he for example could use the
"ESC-minus" sequence for editing the last executed command.
but there's another bug/feature: "ESC-." (period).
when i (of course by mistake) hit this "feature",
all commands i