zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: gi1242+debianbugs@gmail.com, 607603@bugs.debian.org
Cc: zsh-workers@zsh.org
Subject: Re: Bug#607603: zsh: Completion of fuser command does not detect psmisc version
Date: Sat, 25 Dec 2010 15:22:37 +0000	[thread overview]
Message-ID: <20101225152237.GA22176@scru.org> (raw)
In-Reply-To: <20101220050442.GA26195@andrew.cmu.edu>

On Mon, Dec 20, 2010 at 12:04:44AM -0500, gi1242+debianbugs@gmail.com wrote:
> The completion function for fuser tries to determine if fuser is
> provided by PSmisc, or other the (less functional) generic Unix version.
> It decides by checking the output of "fuser -V" for psmisc. However it
> does not use case insensitive matching, so the test fails on my system
> (even though my fuser is provided by psmisc).
> 
> Changing line 6 in
> 
>     /usr/share/zsh/functions/Completion/Unix/_fuser
> 
> from
> 
>     if _pick_variant -c $words[1] psmisc=psmisc unix -V; then
> 
> to
> 
>     if _pick_variant -c $words[1] psmisc='(#i)psmisc' unix -V; then
> 
> fixes the problem.


Thanks.

Index: Completion/Unix/Command/_fuser
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_fuser,v
retrieving revision 1.4
diff -u -r1.4 _fuser
--- Completion/Unix/Command/_fuser	1 Apr 2005 19:49:40 -0000	1.4
+++ Completion/Unix/Command/_fuser	25 Dec 2010 15:16:51 -0000
@@ -3,7 +3,7 @@
 local -a args arg1
 typeset -A opt_args
 
-if _pick_variant -c $words[1] psmisc=psmisc unix -V; then
+if _pick_variant -c $words[1] psmisc='#(i)psmisc' unix -V; then
 
   (( $+functions[_fuser_services] )) ||
   _fuser_services() {


       reply	other threads:[~2010-12-25 15:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20101220050442.GA26195@andrew.cmu.edu>
2010-12-25 15:22 ` Clint Adams [this message]
2011-01-02 16:17   ` gi1242+debianbugs
2011-01-02 19:32     ` Bart Schaefer
2011-01-16 15:18     ` Clint Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101225152237.GA22176@scru.org \
    --to=clint@zsh.org \
    --cc=607603@bugs.debian.org \
    --cc=gi1242+debianbugs@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).