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

[ Available lists | Index of freebsd-questions | Month of Aug 2007 | Week of 29 Aug 2007 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Bahman M. <b.movaqar@gmail.com>
Date
29 Aug 2007 13:37:09
Subject
Re: /bin/sh vi mode command line editing and the period
Message-ID
6d62f69a0708290637i26fc3a3eh9bcb8f41666d71d2@mail.gmail.com

In reply to
Referenced by

[ Hide this part ]
> i just do the following:
>
> clear
> /bin/sh
> EDITOR=vi
> export EDITOR
> set -o $EDITOR
> echo 1
> echo 2
> echo 3
> echo 4
> <ESC-.>
>
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 (eg.
/bin/echo instead of echo) and ESC-. did nothing. In fact unless the
last command was a builtin, ESC-. just repeated the last _editing_
action.
This is not a desired behaviour however IMO, to repeat the last
command (if builtin) upon a ESC-. on an empty line.
Please correct me if I'm wrong.

Bahman


Elapsed time: 0.127 seconds