Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

strange behaviour of zparseopts



Hello,

The following minimal example illustrates the problem I am having.

drat.sh
----------------------------------------------------------------------------------------------------------
#!/usr/local/bin/zsh -f

zparseopts -D -E -A elkopts -tasks:  -maxthd: -scale: -xc: -mix: -scl:  -spsource: -kx: -ky: -kz: -write:  \
	   -quality:


zparseopts -D -E -A elkopts -actype:

----------------------------------------------------------------------------------------------------------

The first invocation of zparseopts works (no error is returned).  The
second returns:

./drat.sh:zparseopts:7: missing option descriptions

Swapping the order of the invocations has no effect (beyond changing the
line number at which the error arises).

I'm running zsh-5.8 on freebsd-11.4.

Thanks for any help offered.

Roger




Messages sorted by: Reverse Date, Date, Thread, Author