From owner-freebsd-questions Tue Mar 18 20:02:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA03275 for questions-outgoing; Tue, 18 Mar 1997 20:02:36 -0800 (PST) Received: from f12.hotmail.com (F12.hotmail.com [207.82.250.23]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA03269 for ; Tue, 18 Mar 1997 20:02:33 -0800 (PST) Received: (from root@localhost) by f12.hotmail.com (8.7.5/8.7.3) id UAA12739; Tue, 18 Mar 1997 20:01:57 -0800 (PST) Date: Tue, 18 Mar 1997 20:01:57 -0800 (PST) Message-Id: <199703190401.UAA12739@f12.hotmail.com> Received: from 137.229.17.253 by www.hotmail.com with HTTP; Tue, 18 Mar 1997 20:01:57 PST X-Originating-IP: [137.229.17.253] From: " steve howe" To: questions@freebsd.org Subject: getopts Content-Type: text/plain Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk (2.1.5 - sh) - i notice that "getopt" allows multiples of the same options. - ie, "set `getopt -abc $*`" will allow multiple a's, b'a, or c's forcing a script or C program to error check those conditions, additionally eliminating valid options. - for example "script -abbc" will get "-a -b -b" and -c will get trashed in the "getopt" example above. imho - getopt should bypass and multiple options and continue with the parsing ... - thanks ... --------------------------------------------------------- Get Your *Web-Based* Free Email at http://www.hotmail.com ---------------------------------------------------------