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

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

and this is the output:
test# /bin/sh
test# EDITOR=vi
export EDITOR
set -o $EDITOR
echo 1
echo 2
echo 3
echo 4
test# test# test# echo 1
1
test# echo 2
2
test# echo 3
3
test# echo 4
4
test#
test#
test# echo 2
2
test# echo 3
3
test# echo 4
4
test#
test#


interestingly, echo 1 is not re-executed but the other commands are.
dunno what's going on here, but i really find it somewhat dangerous
as a default root shell for a unix system (of course, in vi mode)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006c01c7ea35$71559970$14b1a8c0>