Date: Thu, 5 Jul 2012 13:21:50 -0400 From: Mike Meyer <mwm@mired.org> To: <hackers@freebsd.org> Subject: Re: Better error messages for command not found (was Re: Pull in upstream before 9.1 code freeze?) 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> <CAC8HS2Hx%2BqV1zYSzyM6wYzbyA6BStd3HEwc-VDhv40DHM=qCvw@mail.gmail.com> <CAOjFWZ5ikPz_yDhEQutiXVG354qRHYJTn-M_S4Cx-=YRgFP7eQ@mail.gmail.com> <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> <alpine.BSF.2.00.1207051635550.2537@wojtek.tensor.gdynia.pl> <2336980A-5AAB-4D45-8177-71609A7B31F7@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Jul 2012 15:57:09 +0100 Jonathan Anderson <jonathan.robert.anderson@gmail.com> 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. <mike --=20 Mike Meyer <mwm@mired.org> http://www.mired.org/ Independent Software developer/SCM consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120705132150.19f456b1>