Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#526924: zparseopts: should use lists as values in assoc array
- X-seq: zsh-workers 26931
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Clint Adams <schizo@xxxxxxxxxx>, martin f krafft <madduck@xxxxxxxxxx>, 526924@xxxxxxxxxxxxxxx
- Subject: Re: Bug#526924: zparseopts: should use lists as values in assoc array
- Date: Tue, 05 May 2009 10:05:06 -0700
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20090505160528.GB19068@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20090504130124.GA13947@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20090505160528.GB19068@xxxxxxxx>
On May 5, 4:05pm, Clint Adams wrote:
}
} set -- -a1 -a2; zparseopts 'a+:=arr'; print -l $arr
}
} although this seems to set arr=(1 -a 2), which is not what I
} expected to happen.
The parameter is set to (-a 1 -a 2), but "print -l $arr" is consuming
the first -a as an option to print.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author