Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	autolearn_force=no version=3.4.0
Date: Fri, 29 Jan 2016 09:19:07 +0000
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Silvio Ricardo Cordeiro <silvioricardoc@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: Zstyle command completion does not work for some executables
Message-ID: <20160129091907.GC28305@tarsus.local2>
References: <CABq1aV__gsNumkqqdsnfH2sORfM9SuKo4wAgoE70i9SQ+Xu2pA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CABq1aV__gsNumkqqdsnfH2sORfM9SuKo4wAgoE70i9SQ+Xu2pA@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Seq: zsh-workers 37832

Silvio Ricardo Cordeiro wrote on Thu, Jan 28, 2016 at 12:52:44 -0200:
> On an otherwise empty .zshrc:
> 
> Some completion specifications work normally:
> 
> > zstyle ':completion:*:*killall*:*' command 'echo testing'
> > zstyle ':completion:*:*rake*:*' command 'echo testing'

What is happening?  What do you want to happen?

The 'command' style isn't used by all completion functions.

Cheers,

Daniel

> While other completion just do *not* work:
> 
> > zstyle ':completion:*:*bash*:*' command 'echo testing'
> > zstyle ':completion:*:*some_file_in_PATH*:*' command 'echo testing'
> 
> zstyle ':completion:*:*inexistent_executable*:*' command 'echo testing'
> >
> 
> Is there any way to debug this kind of behavior?  I have tried pressing
> "^X?", but the output is the same for "killall" and for "bash"...
> 
> -- 
> Silvio Ricardo Cordeiro

