* Re: Bug#526925: zparseopts: '+' option is being ignored with normal arrays
[not found] <20090504130438.GA14233@piper.oerlikon.madduck.net>
@ 2009-05-05 16:09 ` Clint Adams
2009-05-05 16:29 ` martin f krafft
0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2009-05-05 16:09 UTC (permalink / raw)
To: martin f krafft, 526925; +Cc: zsh-workers
On Mon, May 04, 2009 at 03:04:38PM +0200, martin f krafft wrote:
> piper:~|master|% set -- -a1 -a2; zparseopts a+:=arr; echo $arr
> 2
>
> The + option is supposed to ensure that all occurrences get appended
> to the array, not just the last one. Apparently, the same problems
> occurs when a global array is used:
>
> piper:~|master|% set -- -a1 -a2; zparseopts -a arr a+:; echo $arr
> 2
Oddly, here I get
-a 1 -a 2
and the last issue was only because I forgot to use a -- after print -l.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug#526925: zparseopts: '+' option is being ignored with normal arrays
2009-05-05 16:09 ` Bug#526925: zparseopts: '+' option is being ignored with normal arrays Clint Adams
@ 2009-05-05 16:29 ` martin f krafft
0 siblings, 0 replies; 2+ messages in thread
From: martin f krafft @ 2009-05-05 16:29 UTC (permalink / raw)
To: 526925-done, zsh-workers
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
also sprach Clint Adams <schizo@debian.org> [2009.05.05.1809 +0200]:
> Oddly, here I get
>
> -a 1 -a 2
>
> and the last issue was only because I forgot to use a -- after print -l.
Like the other bug, it's probable that I had polluted my shell. This
works as expected now. Sorry, Clint.
--
.''`. martin f. krafft <madduck@d.o> Related projects:
: :' : proud Debian developer http://debiansystem.info
`. `'` http://people.debian.org/~madduck http://vcs-pkg.org
`- Debian - when you have better things to do than fixing systems
[-- Attachment #2: Digital signature (see http://martin-krafft.net/gpg/) --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-05 16:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20090504130438.GA14233@piper.oerlikon.madduck.net>
2009-05-05 16:09 ` Bug#526925: zparseopts: '+' option is being ignored with normal arrays Clint Adams
2009-05-05 16:29 ` martin f krafft
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).