From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6135 invoked by alias); 23 Jan 2011 18:51:44 -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: 28644 Received: (qmail 8069 invoked from network); 23 Jan 2011 18:51:32 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.216.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=NwDRp8KJtf7Vtm0aX6nU2DK/qa93oZa5Q2+ubvrTwNc=; b=Bq/ZJf3yK+z8cEbuLLxnlfdIq4mnFd8Edp2vHwQHcjRlHejiHDn8IkD1PyJ4wpS9p2 wQzIVhnnq5NQ3QCtQVj6wpjKRbsMFoBb9+87t7LrHJZ/F4iEe34riJSOfcBsXIWYX+vd 7t7kUxa37BRKxBoHzFjCbd9kCbham1vGnMQIw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=PSKuZgI4/8e8NWjdboab0Ym/i12gNDBlm61BOPoQJNNscfwSSb0zo/gQPFvff/lOnl 2zj6xMx4xsiwqXU92gk6H3JTxvByW+RkE/M4sC64HrCBAT0szEctrj4hNYxySCkPpb5D f/b6eYRJ5DPkSZlPAD+sws9r7NBLxAn/qxl9U= MIME-Version: 1.0 In-Reply-To: <20110123174508.GC2593@andrew.cmu.edu> References: <20110123174508.GC2593@andrew.cmu.edu> Date: Sun, 23 Jan 2011 19:51:25 +0100 Message-ID: Subject: Re: _arguments: Sets not working? From: Mikael Magnusson To: gi1242+zsh@gmail.com, zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On 23 January 2011 18:45, wrote: > Hi All, > > It looks like argument sets separated by single hyphens are not working. > You can see the bug by trying to complete arguments of 'vncserver'. When > you ask for completions, none are returned. [Behaviour persists in > latest release from Git] > > The vncserver code seems to use completion sets. From zshcomsys, line > 3397 in zsh4.3.10: > > It is possible to specify multiple sets of options and arguments > with the sets separated by single hyphens. The specifications before > the first hyphen (if any) are shared by all the remaining sets. > > (I couldn't get the documentation from git to build on my system, so > don't know if the behaviour has changed or not.) > > When I remove lines > > - start \ > - kill \ > - help \ > > from Completion/**/_vnc, then options are completed as expected. With > the above lines, I get no argument completions; and I can't figure out > how the syntax contradicts the man page. Is there a bug? > > Thanks, > > GI FWIW, the completion appears to work fine here. If i specify -help, no other completions are offered, and same for -kill or the other set as well. I even found i still had an Xvnc process running from a few weeks ago when i pressed tab again after -kill :). -- Mikael Magnusson