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

Hi!

The enclosed patch makes the fusermount completion use
_canonical_paths and _fuse_values, introduced by Bug# 389801
(Generic completion for FUSE programs). Hence, this patch should be
applied after resolving the aforesaid bug. The patch also improves
the descriptions provided, fixes a bug with one of the options and
also corrects the indentation to conform with the zsh coding style.

Regards,
Ramkumar.

--- _fusermount.orig	2006-09-29 04:09:30.667141912 +0530
+++ _fusermount	2006-09-28 00:16:45.192984904 +0530
@@ -4,21 +4,23 @@
 typeset -A opt_args
 
 _arguments \
-	'-h[help]' \
-	'-v[version]' \
-	'-o[options]:mount options:_values -s , "mount options" default_permissions allow_other allow_root kernel_cache large_read direct_io max_read=:size: hard_remove debug fsname=:name: use_ino readdir_ino nonempty umask=:umask: uid=:uid: gid=:gid:' \
-	'-u[unmount]' \
-	'-q[quiet]' \
-	'-z[lazy unmount]' \
-	':mountpoint:->mountpoint' && return 0
+  '-h[display help information]' \
+  '-V[display version information]' \
+  '-o[specify mount options]:mount options:_fuse_values "mount options"' \
+  '-u[unmount a fuse mount]' \
+  '-z[unmount lazily (work even when if the resource is still busy)]' \
+  '-q[suppress nonessential output]' \
+  ':mount point:->mountpoint' && return 0
+
+typeset -a mtpts
 
 case "$state" in
-	(mountpoint)
-	if [[ $+opt_args[-u] -eq 0 ]]; then
-	  _files -/
-        else
-	  _wanted mounted expl 'mounted filesystem' \
-	  compadd ${${${"${(f)$(< /etc/mtab)}"}#* }%% *}
-        fi
-	;;
+  (mountpoint)
+  if [[ $+opt_args[-u] -eq 0 ]]; then
+    _files -/
+  else
+    mtpts=(${${${"${(f)$(< /etc/mtab)}"}#* }%% *})
+    _canonical_paths mounted 'mounted filesystem' $mtpts
+  fi
+  ;;
 esac
-- 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

Reply via email to