From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 5 14:57:13 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2BBA8106566B for ; Thu, 5 Jul 2012 14:57:13 +0000 (UTC) (envelope-from jonathan.robert.anderson@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id A1D658FC08 for ; Thu, 5 Jul 2012 14:57:12 +0000 (UTC) Received: by wibhm11 with SMTP id hm11so5241316wib.13 for ; Thu, 05 Jul 2012 07:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=XgADbfiILebGvIeIcOcVrOJH+2IvBrT7UbPZCttPLag=; b=1CDTOhTMpSDNKsN2aYmAb59OQOkZ13kNnJHqBq2Z55QFa+70141Eh48vMbNGDfXC8k GbGE5cqdlpMMEdFIAEV14CRegDoQRivu1v4Kt1B70Rd4QaZJYEmp0c8KincpVnnwp0aw 1syE8iVdgYcmSXAoWKhgiMIcjL7PMqCR/5GHbjp+H/GCNa+RhInG3wJMg30Z33RFLI/m +YhQY5xcFELpndkeT7SD2uja2eggwQNW3Ewp7VHcRbteTxTVXrkZovOz+AkeuvrTOUrh 8sj35BfJe60rnJueQXCbdj0sTkgRhM1hpBB2G/sx72rwKkfwV15zLLwZCx5JqQUujPii s/Ug== Received: by 10.180.78.99 with SMTP id a3mr86733wix.15.1341500231498; Thu, 05 Jul 2012 07:57:11 -0700 (PDT) Received: from c137.al.cl.cam.ac.uk (c137.al.cl.cam.ac.uk. [128.232.110.137]) by mx.google.com with ESMTPS id y2sm364607wix.7.2012.07.05.07.57.09 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jul 2012 07:57:10 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=windows-1252 From: Jonathan Anderson In-Reply-To: Date: Thu, 5 Jul 2012 15:57:09 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <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> To: Wojciech Puchar X-Mailer: Apple Mail (2.1278) X-Mailman-Approved-At: Thu, 05 Jul 2012 15:30:44 +0000 Cc: freebsd-hackers@freebsd.org, Mike Meyer 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 14:57:13 -0000 On 5 Jul 2012, at 15:36, Wojciech Puchar wrote: >> mwm@IPGhosterCrawlerI:~$ mmap >> No command 'mmap' found, did you mean: >> Command 'jmap' from package 'openjdk-6-jdk' (main) >> Command 'jmap' from package 'openjdk-7-jdk' (universe) >> Command 'gmap' from package 'gmap' (multiverse) >> Command 'gmap' from package 'scotch' (universe) >> Command 'tmap' from package 'emboss' (universe) >> Command 'smap' from package 'slurm-llnl' (universe) >> Command 'pmap' from package 'procps' (main) >> Command 'moap' from package 'moap' (universe) >> Command 'umap' from package 'libunicode-map8-perl' (main) >> Command 'map' from package 'sgt-puzzles' (universe) >> Command 'amap' from package 'amap-align' (universe) >> mmap: command not found >=20 > are you serious that linux distros have such a think now? > I didn't use linux for a long time and no plan to use it, but you are = joking isn't it? They do, and it's actually very useful in two cases: 1. new users =97 "my friend told me to try out latex, but when I type = 'latex' nothing happens! oh wait, that's how I make it work" 2. confusingly-named packages. on FreeBSD: [nick ~]$ latex zsh: command not found: latex [nick ~]$ pkg search latex | awk '{print $1}' latex-chapterfolder-2.0.20051124 latex-supertabular-1_3 ja-latex2html-2002.2.1j2.0_11 latex-beamer-3.07_4 latex-feynmf-1.08.19961202_7 pidgin-latex-1.0_5 latex-biblatex-0.9e latex-pgf-2.10 latex-svninfo-0.7.4_3 latex-keystroke-1.0.20001109_5 latex-aastex-5.2_3 klatexformula-3.1.2_2 latex-nomencl-4.2.20050922 jlatexmath-0.9.7 latex-acm-1.1 latex-circ-1.0f_5 html2latex-0.9c rtf2latex2e-1.0 latex-timing-1.0.19940515_6 latex-aa-6.1_3 latex-ucs-20041017_5 tomboy-plugin-latex-0.6 latex2e-2003.12_1 latex-etoolbox-2.0.a db2latex-0.8p1_1 dblatex-0.3.2 latex2html-2008 latex2slides-1.0_5 platex-jsclasses-1.0.20110510 ja-platex-otf-1.2.4_6 ja-platex209-1.0_7 latex-mk-2.1_2 rtf2latex-1.5 latex-prettyref-3.0_4 latex-texpower-0.2_4 latex-arydshln-1.71.20040831_5 latex-logreq-1.0 cpp2latex-2.3 latex-biblist-1.4.19920113_5 platex-japanese-1.3_4 latex-caption-3.1.20100114_1 latex-auto-greek-1.0b_4 latexmk-431 latex-service-0.1_2 latex2rtf-2.0.0 latex-tipa-1.3_4 latex-mathabx-1.0.20050518_4 latex-logpap-0.6.20040201_5 htmltolatex-1_15 latex-bytefield-1.2.20050731_5 latex-resume-20010823_3 latexdiff-0.5_2 easylatex-0.080 csv2latex-0.18,1 latex-subfloat-2.14.20030821_5 latex-csquotes-5.0b latex-ltablex-1.0_1 latex-cjk-4.8.2_5 Compare to bash on Ubuntu: [jra40@kent ~]$ latex The program 'latex' is currently not installed. You can install it by = typing: sudo apt-get install texlive-latex-base This kind of thing makes the system *very* discoverable for non-experts = (even non-experts wrt a particular package). You don't need to check = mailing lists or freshports or whatnot, you can just try stuff out, and = when it doesn't work, the system sometimes helps you find the thing = you're looking for. For some people (like me), "just try stuff out" is = an excellent way to start playing / getting familiar with a new system; = it makes it more likely that I will stick with that system. The command line shouldn't have to be a scary place for new users. Jon -- Jonathan Anderson jonathan@FreeBSD.org http://freebsd.org/~jonathan/=