From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 5 17:29:53 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13ED8106571A for ; Sun, 5 Aug 2012 17:29:53 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id 8826B8FC18 for ; Sun, 5 Aug 2012 17:29:52 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id E6375E656E; Sun, 5 Aug 2012 18:31:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cran.org.uk; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=mail; bh=/VoaTz3sNXcC THKAptrENXzmn4c=; b=dmqdxGj4UI/k3K8Axrh6WlUcL1vD38Oe3rxJqGkbY5MY 3yDocMhMLFInSi8T08V84qKDNO4jMDOjk0fejwKLxvi2LmiNw8SGlwWM67+IWH2a xdpYPEKl5GiCCHHOO4HKfmYefRkN9kr37K5eiOnwN0HghoHuvs4fo2KVSFJf1iA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=cran.org.uk; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=mail; b=l7dfQr mevA/J4FjryIqAJ4iKIU9fBQbcjFOaYnqNm1nztO8p8DCVnsd8E899UzkhT4mf0p hKKrD5Cx7H8JA1Gi4NVee32mBDeMloVr2wtcoMC5hcz5bACnj2ABd7Uur2c0H2Gc ApK9mxS1Riw7IZorSxlyYvIgUHQ4X9P9NnzRg= Received: from [192.168.2.33] (unknown [93.89.81.205]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id 86698E6486; Sun, 5 Aug 2012 18:31:52 +0100 (BST) Message-ID: <501EAD8E.2000505@cran.org.uk> Date: Sun, 05 Aug 2012 18:29:50 +0100 From: Bruce Cran User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Olivier Smedts References: <86bojxow6x.fsf@ds4.des.no> <4FF35864.5030109@FreeBSD.org> <20120704185104.GA42355@DataIX.net> <4FF4B36A.2040608@FreeBSD.org> <20120704180134.7c649e1b@bhuda.mired.org> <4FF4BEED.10103@FreeBSD.org> <20120704225519.GB19945@DataIX.net> <4FF4CAD1.8080804@FreeBSD.org> <20120704234104.GA392@DataIX.net> <8E9DECBB-3D1E-4129-A958-9DB0DF69ECC3@kientzle.com> <4FF4E105.50502@FreeBSD.org> <20120704203711.2732b645@bhuda.mired.org> <2EA305F0-87D9-47BE-B3E6-366659BF77AF@kientzle.com> <20120704214216.29085927@bhuda.mired.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 05 Aug 2012 20:34:57 +0000 Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: Re: Re: Better error messages for command not found (was Re: Pull in upstream before 9.1 code freeze?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2012 17:29:53 -0000 On 05/07/2012 10:48, Olivier Smedts wrote: > And it really annoys me too because usually, instead of an immediate > "command not found", you've got a reply seconds later if on a not so > fast computer. When working on Ubuntu, after a typo or missing command > I have the time to realize that something strange is happening, to > read again what I typed and to hit ^C before any message is displayed. > That annoys me too. The openSUSE guys worked on the same problem (https://bugzilla.novell.com/show_bug.cgi?id=435160), going from a few seconds down to 700ms and got told they'd need to do better :) In the end they added a COMMAND_NOT_FOUND_AUTO variable, disabled by default, to do the slow search, and the standard behaviour became to print a message similar to "Command not found. If this isn't a typo, run "cnf " to find the package containing it" which is a solution I like. -- Bruce Cran