Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
getopts broken in 3.0.2
- X-seq: zsh-workers 3468
- From: Clint Olsen <olsenc@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: getopts broken in 3.0.2
- Date: Tue, 26 Aug 1997 11:33:13 -0700
- Organization: Intel Corporation, Hillsboro, OR
Wow, I was almost deafened by the silence of my last request. Anyway, I
switched the shell to use "bash" and getopts works just fine there. I
believe we have a bug, cap'n.
while getopts G2rd: OPT
do
case $OPT in
'2'|'r'|'G') GENARG=($GENARG -$OPT) ;;
'd') echo printer is $OPTARG ;; #LPARG=-d$OPTARG ;;
'?') echo $0:t: Unknown option $OPTARG; exit 1 ;;
':') echo $0:t: Option required for $OPTARG; exit 1 ;;
esac
done
-Clint
Messages sorted by:
Reverse Date,
Date,
Thread,
Author