Bug#429640: missing bts show completion

2007-06-19 Thread Clint Adams
On Tue, Jun 19, 2007 at 10:41:10AM +0100, Joey Hess wrote:
> bts show foo
> should work the same as
> apt-cache show foo
> 
> There are some other completions possible in bts, but this is the only
> one I find myself missing.

The quick fix is to make show be the same as bugs, since the man page
claims that they are aliases.  This needs to be fixed better though.

Index: Completion/Debian/Command/_bts
===
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_bts,v
retrieving revision 1.7
diff -u -r1.7 _bts
--- Completion/Debian/Command/_bts  18 May 2006 13:15:12 -  1.7
+++ Completion/Debian/Command/_bts  19 Jun 2007 12:41:04 -
@@ -30,14 +30,14 @@
 fi
 
 case "$words[1]" in
-  (show|close|unmerge|notforwarded|noowner|reportspam)
+  (close|unmerge|notforwarded|noowner|reportspam)
 if [[ CURRENT -eq 2 ]]; then
   _message -e bugnum 'bug number'
 else
   _wanted sep expl 'separator' compadd -S ' ' , .
 fi
   ;;
-  bugs)
+  (show|bugs)
 if [[ CURRENT -eq 2 ]]; then
   _wanted package expl 'package' _deb_packages avail
   _wanted maintainer expl 'package maintainer' compadd $DEBEMAIL


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



Bug#429640: missing bts show completion

2007-06-19 Thread Joey Hess
Package: zsh
Version: 4.3.4-6
Severity: wishlist

bts show foo
should work the same as
apt-cache show foo

There are some other completions possible in bts, but this is the only
one I find myself missing.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages zsh depends on:
ii  cdebconf [debconf-2.0]0.116  Debian Configuration Management Sy
ii  debconf [debconf-2.0] 1.5.13 Debian configuration management sy
ii  libc6 2.5-10 GNU C Library: Shared libraries
ii  libncurses5   5.6-3  Shared libraries for terminal hand

Versions of packages zsh recommends:
ii  libcap1   1:1.10-14  support for getting/setting POSIX.
ii  libpcre3  6.7-1  Perl 5 Compatible Regular Expressi

-- no debconf information

-- 
see shy jo


signature.asc
Description: Digital signature