Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-4.2.1: Bug in zparseopts ?
- X-seq: zsh-workers 20267
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: zsh-4.2.1: Bug in zparseopts ?
- Date: Tue, 17 Aug 2004 14:58:26 -0700 (PDT)
- In-reply-to: <OFBD245A62.5BCDEFC8-ONC1256EF3.003D9155-C1256EF3.003E1DD1@xxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <OFBD245A62.5BCDEFC8-ONC1256EF3.003D9155-C1256EF3.003E1DD1@xxxxxx>
- Reply-to: zsh-workers@xxxxxxxxxx
On Tue, 17 Aug 2004, Dieter Lambrecht wrote:
> set -- --c 2
>
> zparseopts -E -a args -A args '-c+:'
Try:
zparseopts -E -a args -A args -- '-c+:'
It's not exactly obvious from the documentation, but you must use "--"
to signal the end of the options of zparseopts and the beginning of the
descriptions of the options it should parse. (Or list at least one
description that does not begin with a "-" before listing any that do.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author