[email protected]
[Top] [All Lists]

Bug#311020: marked as forwarded (zsh: buggy _man completion)

Subject: Bug#311020: marked as forwarded zsh: buggy _man completion
From: Debian Bug Tracking System
Date: Fri, 05 Aug 2005 17:03:32 -0700
Your message dated Fri, 5 Aug 2005 19:56:03 -0400
with message-id <[email protected]>
has caused the Debian Bug report #311020,
regarding zsh: buggy _man completion
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at 311020-forwarded) by bugs.debian.org; 5 Aug 2005 23:56:04 +0000
>From [email protected] Fri Aug 05 16:56:04 2005
Return-path: <[email protected]>
Received: from acolyte.scowler.net [] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1E1C2l-0007cU-00; Fri, 05 Aug 2005 16:56:04 -0700
Received: by acolyte.scowler.net (Postfix, from userid 1000)
        id 330D070055; Fri,  5 Aug 2005 19:56:03 -0400 (EDT)
Date: Fri, 5 Aug 2005 19:56:03 -0400
From: Clint Adams <[email protected]>
To: [email protected]
Cc: Marc Glisse <[email protected]>,
        [email protected]
Subject: Re: Bug#311020: zsh: buggy _man completion
Message-ID: <[email protected]>
Mail-Followup-To: [email protected],
        Marc Glisse <[email protected]>,
        [email protected]
References: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.5.9i
Delivered-To: [email protected]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

> These are actually 2 bugs:
> 1)
> When I use TAB completion with man, a _manpath array is created. If I
> then update $MANPATH, $manpath reflects this change, but however many
> times I use the completion on man again, _manpath is not updated, and
> completion uses the old MANPATH.

Not sure what we can do about that.

> 2)
> extract from _man:
>   # Remove any compression suffix, then remove the minimum possible string
>   # beginning with .<->: that handles problem cases like files called
>   # `POSIX.1.5'.
>   compadd "[email protected]" - ${pages%.(?|<->*)}
> I have a man page called "qui-6.0.1". If I run this command manually,
> it indeed gives "qui-6.0". But when I use TAB completion, I see "qui-6".
> So either an option is different, or the suffix gets removed some other
> place... Notice that if the page is called "qui-6.0.1.gz", it works fine.

Thoughts on this?

Index: Completion/Unix/Command/_man
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_man,v
retrieving revision 1.6
diff -u -r1.6 _man
--- Completion/Unix/Command/_man        31 May 2002 05:02:38 -0000      1.6
+++ Completion/Unix/Command/_man        5 Aug 2005 23:54:44 -0000
@@ -82,7 +82,7 @@
   pages=( ${(M)dirs:#*$sect/} )
   compfiles -p pages '' '' "$matcher" '' dummy '*'
-  pages=( ${^~pages}(N:t:r) )
+  pages=( ${^~pages}(N:t) )
   (($#mrd)) && pages[$#pages+1]=($(awk $awk $mrd))
@@ -90,7 +90,7 @@
   # beginning with .<->: that handles problem cases like files called
   # `POSIX.1.5'.
-  compadd "[email protected]" - ${pages%.(?|<->*)}
+  compadd "[email protected]" - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
 _man "[email protected]"

To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#311020: marked as forwarded (zsh: buggy _man completion), Debian Bug Tracking System <=