Date: Tue, 18 Mar 1997 20:01:57 -0800 (PST) From: " steve howe" <un_x@hotmail.com> To: questions@freebsd.org Subject: getopts Message-ID: <199703190401.UAA12739@f12.hotmail.com>
next in thread | raw e-mail | index | archive | help
(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 ---------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703190401.UAA12739>