From owner-freebsd-hackers Wed Sep 25 23:25:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AA9737B401 for ; Wed, 25 Sep 2002 23:25:12 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id D392D43E65 for ; Wed, 25 Sep 2002 23:25:10 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id g8Q6P79R017801; Thu, 26 Sep 2002 00:25:08 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 26 Sep 2002 00:25:03 -0600 (MDT) Message-Id: <20020926.002503.40859806.imp@bsdimp.com> To: matt@gsicomp.on.ca Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: perceived strangeness with getopt(1,3) From: "M. Warner Losh" In-Reply-To: <009b01c26500$3f7e91a0$1200a8c0@gsicomp.on.ca> References: <009b01c26500$3f7e91a0$1200a8c0@gsicomp.on.ca> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <009b01c26500$3f7e91a0$1200a8c0@gsicomp.on.ca> "Matthew Emmerton" writes: : gabby# getopt k:s: -k -s : -k -s -- : gabby# : : Wha? Neither of these options specified arguments! I guess you could : consider that -k's argument was '-s', but I was pretty sure that an option's : argument couldn't start with a dash character (to avoid the ambiguity that : I'm hitting right now.) -k's argument is '-s' Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message