From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 6 00:21:53 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 3727E106566B; Fri, 6 Jul 2012 00:21:53 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8D6638FC0A; Fri, 6 Jul 2012 00:21:52 +0000 (UTC) Received: by eabm6 with SMTP id m6so3739063eab.13 for ; Thu, 05 Jul 2012 17:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=UHAP1TZJa3fh7CoHzUJRgc2GZEfUmk8sSTkMCnWD1OA=; b=xlr5I8OUxslpMA5O3W0hA/lI+uRDC/6XWtOWNZ8zhGTELOrEypIowxerdp0Cq/JMTK bY/MIAcApXLnf+0c3ivGGGSAIMIeS3SJIXyHBHMdc3F2gxPJykY9zVAaNdgBUxoSSZOz 96kQIGEeDGf97c+/j3hWLeLxPo30NpnkbG7n2qH7XZsFjnYHciQ2drP9H3Xs+A8eAqxy T/xbj30zy44G4i3KeqLxehgVTbFtEvhNL/tlI7UI4WFFS+6pHoD5Ng+OVwQWVDMxvjNh FjPuxpXa3l7TwRb5TxL4/ksF8bG6VSBzZEMSUX2eWSqZNw2lgZ4ljgnskUiyHHMD1wFH 0aVQ== Received: by 10.14.99.132 with SMTP id x4mr7018612eef.1.1341534106404; Thu, 05 Jul 2012 17:21:46 -0700 (PDT) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPS id t3sm66901565eeb.15.2012.07.05.17.21.45 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jul 2012 17:21:45 -0700 (PDT) Date: Fri, 6 Jul 2012 02:21:43 +0200 From: Mateusz Guzik To: Olivier Smedts Message-ID: <20120706002142.GA28915@dft-labs.eu> References: <4FF2E00E.2030502@FreeBSD.org> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: hackers@freebsd.org, Doug Barton , Mike Meyer Subject: 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: Fri, 06 Jul 2012 00:21:53 -0000 On Thu, Jul 05, 2012 at 12:03:21PM +0200, Olivier Smedts wrote: > 2012/7/5 Doug Barton : > > On 07/04/2012 15:01, Mike Meyer wrote: > >> On Wed, 04 Jul 2012 14:19:38 -0700 > >> Doug Barton wrote: > >>> On 07/04/2012 11:51, Jason Hellenthal wrote: > >>>> What would be really nice here is a command wrapper hooked into the > >>>> shell so that when you type a command and it does not exist it presents > >>>> you with a question for suggestions to install somewhat like Fedora has > >>>> done. > >>> I would also like to see this feature, which is pretty much universal in > >>> linux at this point. It's very handy. > >> > >> I, on the other hand, count it as one of the many features of Linux > >> that make me use FreeBSD. > > > > First, I agree that being able to turn it off should be possible. But I > > can't help being curious ... why would you *not* want a feature that > > tells you what to install if you type a command that doesn't exist on > > the system? > > You mean, this desktop "dumb mode" thing that makes my hard drive led > crazy-blink and makes me hit (first) my desk and (then) ^C before > anything is displayed ? > > my FreeBSD desktop : > % time dsfsd > dsfsd: Commande introuvable. > 0.000u 0.002s 0:00.00 0.0% 0+0k 0+0io 0pf+0w > > an Ubuntu "server" : > # time fsqfqsdfs > fsqfqsdfs: command not found > > real 0m0.408s > user 0m0.120s > sys 0m0.040s > > and that's a *fast* one ! > I'd like to point out that the idea is to give the user an easy way obtain package name for given potentialy missing program that is presented to him on error. It doesn't require spitting the list on every occasion and thus introducing overhead. One can just implement a standalone script that does package/port search and add a hook to the shell that prints the following: Command foo not found. Run pkg whatever foo to obtain list of ports/packages providing this program. No overhead, the message is not too long and can be disabled if someone finds it offensive. Does this sound reasonable? -- Mateusz Guzik