Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jul 2012 02:21:43 +0200
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        Olivier Smedts <olivier@gid0.org>
Cc:        hackers@freebsd.org, Doug Barton <dougb@freebsd.org>, Mike Meyer <mwm@mired.org>
Subject:   Re: Pull in upstream before 9.1 code freeze?
Message-ID:  <20120706002142.GA28915@dft-labs.eu>
In-Reply-To: <CABzXLYOmG96-V3YHS=0pvKPU0DDF-EtoHBbaAwpuSAFz-nj_-A@mail.gmail.com>
References:  <4FF2E00E.2030502@FreeBSD.org> <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> <CABzXLYOmG96-V3YHS=0pvKPU0DDF-EtoHBbaAwpuSAFz-nj_-A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 05, 2012 at 12:03:21PM +0200, Olivier Smedts wrote:
> 2012/7/5 Doug Barton <dougb@freebsd.org>:
> > On 07/04/2012 15:01, Mike Meyer wrote:
> >> On Wed, 04 Jul 2012 14:19:38 -0700
> >> Doug Barton <dougb@FreeBSD.org> 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 <mjguzik gmail.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120706002142.GA28915>