Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
getopts broken in 3.0.2
- X-seq: zsh-workers 2835
- From: blaise@xxxxxxxxxxxxxx
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: getopts broken in 3.0.2
- Date: Tue, 28 Jan 1997 14:12:43 -0500
- Original-from: blaise@xxxxxxxxxxx
- Original-from: blaise@xxxxxxxxxxxxxx (Blaise Tarr(457-4233) 51E61 catwoman )
getopts seems to be broken in 3.0.2 and above (it's ok in 3.0.1)
It appears that if one of the options require a parameter, then all
the other options will now expect one too.
Consider the following script:
/tmp/aa:
--------8<------------------------------
while getopts a:b OPTION
do
echo "OPTION is $OPTION"
done
--------8<------------------------------
sample run:
~> zsh-3.0.1 /tmp/aa -b
OPTION is b
~> zsh-3.0.2 /tmp/aa -b
/tmp/aa: argument expected after -b option [1]
OPTION is ?
--
Blaise Tarr
btarr@xxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author