From owner-freebsd-questions@FreeBSD.ORG Wed Aug 29 12:10:07 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7154216A418 for ; Wed, 29 Aug 2007 12:10:07 +0000 (UTC) (envelope-from nospam@mgedv.net) Received: from mail.mgedv.net (mail.mgedv.net [213.229.1.44]) by mx1.freebsd.org (Postfix) with ESMTP id 2D4A913C467 for ; Wed, 29 Aug 2007 12:10:07 +0000 (UTC) (envelope-from nospam@mgedv.net) Received: from wzits045 (client.vpn.loop [192.168.177.20]) by mail.my.loop (mgedv) with ESMTP id 70A651C4FBA for ; Wed, 29 Aug 2007 14:09:24 +0200 (CEST) Message-ID: <006c01c7ea35$71559970$14b1a8c0@bstandard.lan> From: "no@spam@mgedv.net" To: References: <000801c7e87d$bb64f420$14b1a8c0@bstandard.lan><6d62f69a0708270119n34c21b9dr6ab5caa287017da2@mail.gmail.com><001501c7e95b$5b6267e0$14b1a8c0@bstandard.lan> <6d62f69a0708281055y54b9529fw337f1bc85bc85279@mail.gmail.com> Date: Wed, 29 Aug 2007 14:09:25 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Subject: Re: /bin/sh vi mode command line editing and the period X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2007 12:10:07 -0000 >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 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)