From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17809 invoked by alias); 25 Dec 2010 15:28:46 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28548 Received: (qmail 4504 invoked from network); 25 Dec 2010 15:28:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at zsh.org does not designate permitted sender hosts) Date: Sat, 25 Dec 2010 15:22:37 +0000 From: Clint Adams 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 Message-ID: <20101225152237.GA22176@scru.org> References: <20101220050442.GA26195@andrew.cmu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101220050442.GA26195@andrew.cmu.edu> User-Agent: Mutt/1.5.18 (2008-05-17) 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() {