Your message dated Tue, 03 Oct 2006 10:32:32 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#390109: fixed in zsh 4.3.2-19
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(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)

--- Begin Message ---
Package: zsh
Version: 4.3.2-17
Severity: wishlist
Tags: patch

Hi!

Many programs accept as a command-line argument, an option to
specify the address to bind as. Completion functions have either not
been offering completion for the same, or have gone for the much
wider set of _hosts.

I am enclosing a file for a new _bind_addresses function which
completes bind-able addresses got by parsing ifconfig output. I know
the required commands only for Linux, and hence I have defaulted to
_hosts for other systems. Well, something better than nothing! :)

#autoload

local expl

case $OSTYPE in
  aix*) _hosts "$@" ;;
  darwin*|freebsd*|dragonfly*) _hosts "$@" ;;
  irix*) _hosts "$@" ;;
  # Couldn't find anything special for linux except for /proc/net/dev
  # Is there any proc file which gives the formatted ip?
  linux*) ;&
  *)
    _wanted bind-addresses expl 'bind address' compadd "$@" - \
      ${${${(M)${(f)"$(ifconfig -a)"}:#*addr:*}##*addr:}%% *}
esac
I am also enclosing a patch for some of the completion functions for
using this function. (I just did a `grep -ri bind *` over the
Completion directory to get possible functions, there may be more)
Apply this patch after the _bittornado cleanup patch in Bug#390048
(Mixed up descriptions in bittorrent completion).

diff -Naur Unix.orig/_bittorrent Unix/_bittorrent
--- Unix.orig/_bittorrent	2006-09-29 02:59:21.357054312 +0530
+++ Unix/_bittorrent	2006-09-29 02:59:27.886061752 +0530
@@ -24,7 +24,7 @@
       '(--responsefile)--responsefile+[specify file for server response]:file:_files -g "*"'\
       "--url+[specify URL of torrent file]:URL:_urls"\
       '(-i --ip)'{-i+,--ip+}'[specify ip address to report as]:ip address'\
-      "--bind+[specify ip to bind to instead of default]:ip:"\
+      "--bind+[specify ip to bind to instead of default]:ip:_bind_addresses"\
       "--minport+[specify minimum port to listen to]:port:"\
       "--maxport+[specify maximum port to listen to]:port:"\
       "--saveas+[specify file to save to]:file:_files -/"\
@@ -83,7 +83,7 @@
     _arguments -s -S \
       "--port+[specify port to listen on]:port number:" \
       "--dfile+[specify file to store recent downloader info]:file:_files" \
-      "--bind+[specify ip to bind to]:bind address:" \
+      "--bind+[specify ip to bind to]:bind address:_bind_addresses" \
       "--socket_timeout+[specify timeout for closing connections]:timeout (s):"\
       "--save_dfile_interval+[specify interval between saving dfile]:time (s):"\
       "--timeout_downloaders_interval+[timeout for expiring downloaders]:time (s):" \
diff -Naur Unix.orig/_rsync Unix/_rsync
--- Unix.orig/_rsync	2006-09-29 01:48:16.000000000 +0530
+++ Unix/_rsync	2006-09-29 02:40:56.938951384 +0530
@@ -94,7 +94,7 @@
   {--no-v,--no-verbose}'[turn off --verbose]' \
   '--bwlimit=[limit I/O bandwidth]:KBytes per second' \
   '--port=[specify alternate port number]:port:(873)' \
-  '--address=[bind to the specified address]:address:_hosts' \
+  '--address=[bind to the specified address]:bind address:_bind_addresses' \
   '(-T --temp-dir)'{-T,--temp-dir=}'[create temporary files in specified directory]:directory:_directories' \
   '--sockopts=[specify custom TCP options]' \
   '(-4 -6 --ipv4 --ipv6)'{-4,--ipv4}'[prefer IPv4]' \
diff -Naur Unix.orig/_ssh Unix/_ssh
--- Unix.orig/_ssh	2006-09-29 01:48:13.000000000 +0530
+++ Unix/_ssh	2006-09-29 02:42:31.145629792 +0530
@@ -54,7 +54,7 @@
     _arguments -C -s \
       '(-A)-a[disable forwarding of authentication agent connection]' \
       '(-a)-A[enables forwarding of the authentication agent connection]' \
-      '(-P)-b+[specify interface to transmit on]:bind address' \
+      '(-P)-b+[specify interface to transmit on]:bind address:_bind_addresses' \
       '-D+[specify a dynamic port forwarding]:port' \
       '-e+[set escape character]:escape character (or `none'"'"'):' \
       '(-n)-f[go to background]' \
diff -Naur Unix.orig/_wget Unix/_wget
--- Unix.orig/_wget	2006-09-29 01:48:33.000000000 +0530
+++ Unix/_wget	2006-09-29 02:51:52.523287416 +0530
@@ -35,7 +35,7 @@
   '(--proxy -Y --no-proxy)'{--proxy=,-Y+}'[explicitly turn on proxy]' \
   '(--proxy -Y --no-proxy)--no-proxy[explicitly turn off proxy]' \
   '(--quota -Q)'{--quota=,-Q+}'[set retrieval quota]:number' \
-  '--bind-address=:address to bind to (hostname or IP):_hosts' \
+  '--bind-address=[specify address to bind to (hostname or IP)]:bind address:_bind_addresses' \
   '--limit-rate=[specify limit to download rate]:download rate limit' \
   '--no-dns-cache[disable caching DNS lookups]' \
   '--restrict-file-names=[restrict chars in file names to ones OS allows]:OS:->restrict' \
Regards,
Ramkumar.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (101, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-beyond2
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)

Versions of packages zsh depends on:
ii  debconf [debconf-2.0]        1.5.4       Debian configuration management sy
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  libncurses5                  5.5-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.4-2      Perl 5 Compatible Regular Expressi

-- no debconf information

-- 
WARN_(accel)("msg null; should hang here to be win compatible\n");
                                   -- WINE source code

--- End Message ---
--- Begin Message ---
Source: zsh
Source-Version: 4.3.2-19

We believe that the bug you reported is fixed in the latest version of
zsh, which is due to be installed in the Debian FTP archive:

zsh-dbg_4.3.2-19_sparc.deb
  to pool/main/z/zsh/zsh-dbg_4.3.2-19_sparc.deb
zsh-dev_4.3.2-19_sparc.deb
  to pool/main/z/zsh/zsh-dev_4.3.2-19_sparc.deb
zsh-doc_4.3.2-19_all.deb
  to pool/main/z/zsh/zsh-doc_4.3.2-19_all.deb
zsh-static_4.3.2-19_sparc.deb
  to pool/main/z/zsh/zsh-static_4.3.2-19_sparc.deb
zsh_4.3.2-19.diff.gz
  to pool/main/z/zsh/zsh_4.3.2-19.diff.gz
zsh_4.3.2-19.dsc
  to pool/main/z/zsh/zsh_4.3.2-19.dsc
zsh_4.3.2-19_sparc.deb
  to pool/main/z/zsh/zsh_4.3.2-19_sparc.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Clint Adams <[EMAIL PROTECTED]> (supplier of updated zsh package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue,  3 Oct 2006 12:02:03 -0400
Source: zsh
Binary: zsh zsh-dev zsh-static zsh-dbg zsh-doc
Architecture: source sparc all
Version: 4.3.2-19
Distribution: unstable
Urgency: medium
Maintainer: Clint Adams <[EMAIL PROTECTED]>
Changed-By: Clint Adams <[EMAIL PROTECTED]>
Description: 
 zsh        - A shell with lots of features
 zsh-dbg    - A shell with lots of features (debugging symbols)
 zsh-dev    - A shell with lots of features (development files)
 zsh-doc    - zsh documentation - info/HTML format
 zsh-static - A shell with lots of features (static link)
Closes: 390109
Changes: 
 zsh (4.3.2-19) unstable; urgency=medium
 .
   * Fix buggy gpg --encrypt-to completion.
   * From Roger Leigh: Completion updates for dchroot and schroot,
     and new completion for dchroot-dsa.
   * From R. Ramkumar: Completion of bindable IP addresses for
     bittorrent, rsync, ssh, and wget.  closes: #390109.
Files: 
 395fa5254174c50e91ad036033b101ad 739 shells optional zsh_4.3.2-19.dsc
 0b5c5e0334734aa8f8fc267dc3df25b0 426743 shells optional zsh_4.3.2-19.diff.gz
 e7102f7b0834ae5dcf7b7c94dce19a18 701164 shells optional 
zsh-doc_4.3.2-19_all.deb
 4f2760afc06071eec14abc2242e61f18 2236998 shells optional zsh_4.3.2-19_sparc.deb
 0c4ce0f56b937fe45acb4a238345e235 759608 devel extra zsh-dbg_4.3.2-19_sparc.deb
 f06ef2b8f50bddaf10862e951623baac 799962 shells optional 
zsh-static_4.3.2-19_sparc.deb
 606c4c73a2ebc7dc72c3f94655a35e1f 63624 libdevel optional 
zsh-dev_4.3.2-19_sparc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Debian!

iD8DBQFFIpsZ5m0u66uWM3ARAlUTAKDYWCyeYyXxK7TbI8I7RjKZh8wZXQCgmQ5M
z21k2x1G5NCZhJcLNJ9rq20=
=zCpK
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to