From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1518 invoked from network); 28 Apr 2000 09:44:01 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Apr 2000 09:44:01 -0000 Received: (qmail 16204 invoked by alias); 28 Apr 2000 09:43:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11000 Received: (qmail 16172 invoked from network); 28 Apr 2000 09:43:37 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: optional argument? References: <200004250945.LAA03283@beta.informatik.hu-berlin.de> MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 28 Apr 2000 18:44:23 +0900 In-Reply-To: <200004250945.LAA03283@beta.informatik.hu-berlin.de> (Sven Wischnowsky's message of "Tue, 25 Apr 2000 11:45:20 +0200 (MET DST)") Message-ID: User-Agent: T-gnus/6.14.1 (based on Gnus v5.8.3) (revision 16) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/20.6 (i686-pc-linux-gnu) MULE/4.0 (HANANOEN) In article <200004250945.LAA03283@beta.informatik.hu-berlin.de>, Sven Wischnowsky writes: > At the weekend I hacked on _arguments (and comparguments) to allow > _arguments to complete more than one action when appropriate. And the > case above is of course one of cases where it is done. It's good change, in general. But I found a problem. Z(4):akr@serein% Src/zsh -f serein% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst serein% _tst () { _arguments '-o:o:(o)' ':a:(a)' } serein% tst -o a o It shouldn't complete `a' because `o' is not optional. -- Tanaka Akira