From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14052 invoked from network); 2 Mar 2008 22:45:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Mar 2008 22:45:38 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 15093 invoked from network); 2 Mar 2008 22:45:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Mar 2008 22:45:32 -0000 Received: (qmail 45 invoked by alias); 2 Mar 2008 22:45:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24659 Received: (qmail 31 invoked from network); 2 Mar 2008 22:45:28 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 2 Mar 2008 22:45:28 -0000 Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by bifrost.dotsrc.org (Postfix) with ESMTP id C278A8028C4E for ; Sun, 2 Mar 2008 23:45:24 +0100 (CET) Received: from torch.brasslantern.com ([71.121.18.67]) by vms173001.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JX400IT8JZU0P4E@vms173001.mailsrvcs.net> for zsh-workers@sunsite.dk; Sun, 02 Mar 2008 16:33:31 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m22MjCZW012582 for ; Sun, 02 Mar 2008 14:45:13 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m22MjCge012581 for zsh-workers@sunsite.dk; Sun, 02 Mar 2008 14:45:12 -0800 Date: Sun, 02 Mar 2008 14:45:12 -0800 From: Bart Schaefer Subject: Re: Bug#468386: zsh-beta: Slow command completion In-reply-to: <20080302214626.GA27660@scowler.net> To: zsh-workers@sunsite.dk Message-id: <080302144512.ZM12580@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <87zltldnde.fsf@elegiac.orebokech.com> <20080228172715.GA12451@scowler.net> <080228095414.ZM15685@torch.brasslantern.com> <87bq5xupu3.fsf@elegiac.orebokech.com> <080302103252.ZM11919@torch.brasslantern.com> <87zltgudos.fsf@elegiac.orebokech.com> <080302125208.ZM12271@torch.brasslantern.com> <20080302214626.GA27660@scowler.net> Comments: In reply to Clint Adams "Re: Bug#468386: zsh-beta: Slow command completion" (Mar 2, 4:46pm) X-Virus-Scanned: ClamAV 0.91.2/6083/Sun Mar 2 22:16:34 2008 on bifrost X-Virus-Status: Clean On Mar 2, 4:46pm, Clint Adams wrote: } Subject: Re: Bug#468386: zsh-beta: Slow command completion } } On Sun, Mar 02, 2008 at 12:52:08PM -0800, Bart Schaefer wrote: } > What does "whatis --version" say on Debian? } } whatis 2.5.1 } } 2.5.1 is the version of man-db whence whatis comes. Right. On my RHEL system it says: whatis from man-1.5o1 I should have asked before, but does Debian have "apropos"? I'm trying to figure out the best incarnation of something like this: _call_whatis() { case "$(whatis --version)" in (whatis from *) local -A args zparseopts -D -A args s: r: apropos "${args[-r]:-"$@"}" | fgrep "($args[-s]" ;; (*) whatis "$@";; esac } It might be better to test for existence of apropos than to try to parse the output of whatis --version. Or it might not.