From owner-freebsd-questions@FreeBSD.ORG Wed Aug 29 13:37:09 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 3903116A417 for ; Wed, 29 Aug 2007 13:37:09 +0000 (UTC) (envelope-from b.movaqar@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id 0FB7313C461 for ; Wed, 29 Aug 2007 13:37:08 +0000 (UTC) (envelope-from b.movaqar@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so194919waf for ; Wed, 29 Aug 2007 06:37:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bHEcDOV7/qxWifMyLDrkLW5yBCh96CZhW4CDyMmxnXAbLkMyvjJrQM3o8qmC7cyOk2fJtTmZcRFBbk1MRxZ6ixlYG/Zvom4yQoAAy0wtQnOLDVl76MfslCFILEmBgb6KW6SngPr3ykeRx94Q2ByWiwokFMToKZT7DR0I4A9s6kA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=D/X5tLAIecJ0v6WzTjHg+dPNW3h0YmeCuy7l5lK9YMdioo7UFLzkHNATXgFQLkT34sOwlpifOYXokpLhAN/n5Ovr53n/XlAR4sCDsosrJIR+bLOB3JdgSWTz1YwyC0E4N90Mql5zVROsxyF0bIl2zeGmafsjr8Ew/emN1wlZXv4= Received: by 10.114.199.1 with SMTP id w1mr506986waf.1188394628285; Wed, 29 Aug 2007 06:37:08 -0700 (PDT) Received: by 10.114.132.13 with HTTP; Wed, 29 Aug 2007 06:37:08 -0700 (PDT) Message-ID: <6d62f69a0708290637i26fc3a3eh9bcb8f41666d71d2@mail.gmail.com> Date: Wed, 29 Aug 2007 17:07:08 +0330 From: "Bahman M." To: "no@spam@mgedv.net" In-Reply-To: <006c01c7ea35$71559970$14b1a8c0@bstandard.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <000801c7e87d$bb64f420$14b1a8c0@bstandard.lan> <6d62f69a0708270119n34c21b9dr6ab5caa287017da2@mail.gmail.com> <001501c7e95b$5b6267e0$14b1a8c0@bstandard.lan> <6d62f69a0708281055y54b9529fw337f1bc85bc85279@mail.gmail.com> <006c01c7ea35$71559970$14b1a8c0@bstandard.lan> Cc: freebsd-questions@freebsd.org 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 13:37:09 -0000 > 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 (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