From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21668 invoked from network); 26 Aug 1997 18:43:57 -0000 Received: from math.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 26 Aug 1997 18:43:57 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id OAA17084; Tue, 26 Aug 1997 14:33:15 -0400 (EDT) Resent-Date: Tue, 26 Aug 1997 14:33:15 -0400 (EDT) Message-ID: <19970826113313.16000@dtthp169.jf.intel.com> Date: Tue, 26 Aug 1997 11:33:13 -0700 From: Clint Olsen To: zsh-workers@math.gatech.edu Subject: getopts broken in 3.0.2 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.83 Organization: Intel Corporation, Hillsboro, OR X-Disclaimer: Mutt Bites! Resent-Message-ID: <"wz1hq.0.qA4.g5o0q"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3468 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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