Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2007 17:07:08 +0330
From:      "Bahman M." <b.movaqar@gmail.com>
To:        "no@spam@mgedv.net" <nospam@mgedv.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /bin/sh vi mode command line editing and the period
Message-ID:  <6d62f69a0708290637i26fc3a3eh9bcb8f41666d71d2@mail.gmail.com>
In-Reply-To: <006c01c7ea35$71559970$14b1a8c0@bstandard.lan>
References:  <000801c7e87d$bb64f420$14b1a8c0@bstandard.lan> <6d62f69a0708270119n34c21b9dr6ab5caa287017da2@mail.gmail.com> <001501c7e95b$5b6267e0$14b1a8c0@bstandard.lan> <6d62f69a0708281055y54b9529fw337f1bc85bc85279@mail.gmail.com> <006c01c7ea35$71559970$14b1a8c0@bstandard.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6d62f69a0708290637i26fc3a3eh9bcb8f41666d71d2>