From owner-freebsd-questions@FreeBSD.ORG Mon Aug 27 08:05:53 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 7D63D16A417 for ; Mon, 27 Aug 2007 08:05:53 +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 3D3F213C48A for ; Mon, 27 Aug 2007 08:05:53 +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 AC15F1C4F26 for ; Mon, 27 Aug 2007 09:41:51 +0200 (CEST) Message-ID: <000801c7e87d$bb64f420$14b1a8c0@bstandard.lan> From: "no@spam@mgedv.net" To: Date: Mon, 27 Aug 2007 09:41:51 +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: /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: Mon, 27 Aug 2007 08:05:53 -0000 hi folks, when someone uses set -o vi to put /bin/sh into vi-mode for command line editing, he for example could use the "ESC-minus" sequence for editing the last executed command. but there's another bug/feature: "ESC-." (period). when i (of course by mistake) hit this "feature", all commands in the history IMMEDIATELY get executed without even pressing enter. is this a bug or a feature and how can i avoid this to happen - even with being in vi mode and in /bin/sh. from my point of view, this is a really dangerous thing, because commands like rm -rf or kill could easily get executed when they shouldn't! the documentation for vi shows that "." should be used to edit the whole history and not to parse and execute it! (allocated to cmdline editing). cu / regards ps: just reply to the list, i'm on it.