Re: /bin/sh vi mode command line editing and the period

2007-08-29 Thread [EMAIL PROTECTED]@mgedv.net
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

Re: /bin/sh vi mode command line editing and the period

2007-08-29 Thread Bahman M.
> 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

Re: /bin/sh vi mode command line editing and the period

2007-08-29 Thread [EMAIL PROTECTED]@mgedv.net
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

Re: /bin/sh vi mode command line editing and the period

2007-08-28 Thread Bahman M.
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

Re: /bin/sh vi mode command line editing and the period

2007-08-28 Thread [EMAIL PROTECTED]@mgedv.net
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

Re: /bin/sh vi mode command line editing and the period

2007-08-27 Thread Bahman M.
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

/bin/sh vi mode command line editing and the period

2007-08-27 Thread [EMAIL PROTECTED]@mgedv.net
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