Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: weird bit in _man
- X-seq: zsh-workers 29803
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: weird bit in _man
- Date: Tue, 27 Sep 2011 10:50:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1317113427; bh=2kjLnCnC8/RtJcyNQp1q+SRfWWGyjMnxJuGEbEyjsZU=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=3Esg6EpHRj+3W94VgyFRwcjH92z+OxyKpiQr+BrbJgcwD+dmu/Hz76c2b1PHGK7vtQJRd8oySXjXAAUCatDsFKcbCDXkKO6O7oFU2ttFWJnUWupWN2B0Fn0GHyRRLFrRIriQmzjMV5w7+/MoLPMJG2MyiyollubyuIA/tOh15e0=
- In-reply-to: <CAHYJk3TfZ6x2rKpgu1D19Aw=FHdxC3nob1gwYORkP7FHid91CQ@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAHYJk3TfZ6x2rKpgu1D19Aw=FHdxC3nob1gwYORkP7FHid91CQ@mail.gmail.com>
Mikael Magnusson wrote:
> _files || return 0
> surely that should be && ? Or maybe even _files; return since it
I suspect that it is a mistake. The original patch doesn't provide much
clue. && was probably intended but as you say ; is better because you
wouldn't want to go on to complete man pages. It could perhaps specify
a glob much as _mere does (although allowing for .gz extensions).
The problem with that as a fix is that on some systems man has a -l option
that is something other than view a local file. Or at least, on Solaris,
it prints all the matching manual pages with their section numbers and
location. Perhaps we need to use _pick_variant but I notice that man is
completely different on Debian and on OEL (Oracle's Redhat clone) so it
may not be trivial.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author