From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20005 invoked by alias); 14 May 2011 01:25:31 -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: 29271 Received: (qmail 27327 invoked from network); 14 May 2011 01:25:21 -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 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=rkbOOzIgNXv0765fspoNXtwDq2foWsoyW85Psi1yWb8=; b=N81t2V2Sm2YjqLSAtlYF5rEqlP36WMqjSamgYy4HWtk1VF92AEGqPGpWSOSCN9/dIv gscqsFVDizkbTcI6PkxwUrz2RUPyguT7dgo9DIeLnsmkpFUUeGRrbsx0jEbM+30PxQyD N+DsDm1c+5EEFsnZmNF42AEih2IoerJKRY4QE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=u1H2uuepT1UIlzINdDq5XFJRV+LYLkTDCjlaSxPrRsJD4MSgjTEfm+fGko+9fkeazL 1iiuEHqpyOSvqblzF8IBtf5TjweH53MOkpz4QcEbbyyowJNb9vz0Vn7gUihe+89H3M/6 S5Jw3omnF8C9mkeJsp5y846oG8ty47rLXpHl0= MIME-Version: 1.0 Date: Sat, 14 May 2011 03:25:15 +0200 Message-ID: Subject: _alternative -O undocumented? From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 It seems _alternative allows passing arbitrary options down to compadd by doing foo=( '-V' 'foo' ); _alternative -O foo, but the documentation doesn't mention it. _chmod, _which, _zstyle, _aliases and _command_names make use of this feature. _values has this feature too and documents it, If the first argument is the option `-O name', it will be used in the same way as by the _arguments function. In other words, the elements of the name array will be passed to compadd when executing an action. Can I copy this paragraph into the _alternative section? Possibly modifying for it not having to be the first option. -- Mikael Magnusson