Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Advanced option parsing across zsh commands
On Jan 26, 8:09pm, Sebastian Gniazdowski wrote:
}
} Here is how it works if order of option specification is changed:
}
} % zparseopts -a optsa -A opts -D -E +: b: c
All you've done there is manage to get the empty-string option to
be tested after any of the others (the specs are tested against
$argv in reverse of the order they appear as zparseopts arguments).
It's almost certainly coincidental that this created options that
seem to be named "-" and assigned "+X" as the value; this effect
no longer occurs with my patch from 37810, and is probably not
reliable with any zsh prior to that patch.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author