From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 5 17:21:56 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A37281065674 for ; Thu, 5 Jul 2012 17:21:56 +0000 (UTC) (envelope-from mwm@mired.org) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 404648FC24 for ; Thu, 5 Jul 2012 17:21:56 +0000 (UTC) Received: by qaat11 with SMTP id t11so4142725qaa.13 for ; Thu, 05 Jul 2012 10:21:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:organization :x-mailer:face:mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=eqOA026/A8EJaCXpYjtG2NyW4qiV1Oi4kKlbVyGND/8=; b=j5Wf3Z/+GSuken9R9hwNAJWMOap5DRBc1Lp+IYUE5mVa/qKIsHQ7JyFNXSX7JBrQ1+ 6YEmL4kEcFopX1189UxK5jeUslgH91EilmpYpJ6wu6tpuMbYF/zqZJb12VFPiEzpQW+8 DS1nR5MOYsAc2dEI51JlYa5DjSXhJOzWjBBajSuu6R4BuRa1rOd6nIX4iE1v33b9bt11 VSCsfDuNp9UCWwTFS8QzaYNQza1uJpa56JZcQRdcJfK2NOhr+MPe9XE1DGotOZETgHFy vXxcPcRqN5CvN4qiU+ahEzW6Zdywm/hZW4hUDfUxExpl899RU4ct6TLzU8kBa598/d9E E5Fw== Received: by 10.224.189.17 with SMTP id dc17mr47149607qab.14.1341508915425; Thu, 05 Jul 2012 10:21:55 -0700 (PDT) Received: from bhuda.mired.org (74-140-201-117.dhcp.insightbb.com. [74.140.201.117]) by mx.google.com with ESMTPS id cz12sm46751562qab.5.2012.07.05.10.21.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jul 2012 10:21:55 -0700 (PDT) Date: Thu, 5 Jul 2012 13:21:50 -0400 From: Mike Meyer To: Message-ID: <20120705132150.19f456b1@bhuda.mired.org> In-Reply-To: <2336980A-5AAB-4D45-8177-71609A7B31F7@gmail.com> 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> <2336980A-5AAB-4D45-8177-71609A7B31F7@gmail.com> Organization: Meyer Consulting X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlutLUqHqgzP4q2Xt3CBNl+uoljvCUqe2Ku09Ym/gEZ+lCKYKMaNqd6YyvqTZEVzfl39fLu Cc: Subject: 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: Thu, 05 Jul 2012 17:21:56 -0000 On Thu, 5 Jul 2012 15:57:09 +0100 Jonathan Anderson wrote: > They do, and it's actually very useful in two cases: > 1. new users =E2=80=94 "my friend told me to try out latex, but when I ty= pe 'latex' nothing happens! oh wait, that's how I make it work" > 2. confusingly-named packages. on FreeBSD: >=20 > [nick ~]$ latex > zsh: command not found: latex > [nick ~]$ pkg search latex | awk '{print $1}' > latex-chapterfolder-2.0.20051124 [long list elided] > Compare to bash on Ubuntu: >=20 > [jra40@kent ~]$ latex > The program 'latex' is currently not installed. You can install it by ty= ping: > sudo apt-get install texlive-latex-base Nobody has argued that making the ports collection easier to search would be a bad idea. I get: bhuda% portsearch -f 'bin/latex$' Port: latex2e-2003.12_1 Info: TeX macro package Path: /usr/ports/print/latex Files: bin/latex Port: teTeX-base-3.0_20 Info: Thomas Esser's distribution of TeX & friends (binaries) Path: /usr/ports/print/teTeX-base Files: bin/latex 2 ports, 2 files bhuda%=20 Hmm. Seems like we have two different versions of latex in the ports - and probably packages - tree. In fact, if you want this functionality in the base, providing the search functionality as an external tool is a crucial step. I'd be surprised if anybody object to that being added to base. > The command line shouldn't have to be a scary place for new users. Nor should it be an annoying place for old users. New users are important. But old users are the ones who make contributions. http://www.mired.org/ Independent Software developer/SCM consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org