From owner-freebsd-arch Sat Dec 22 12:19:33 2001 Delivered-To: freebsd-arch@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id F11BF37B419 for ; Sat, 22 Dec 2001 12:19:31 -0800 (PST) Received: from peter3.wemm.org ([12.232.27.13]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20011222201931.NGCY19716.rwcrmhc51.attbi.com@peter3.wemm.org> for ; Sat, 22 Dec 2001 20:19:31 +0000 Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id fBMKJUs88821 for ; Sat, 22 Dec 2001 12:19:30 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id B9DEF38CC; Sat, 22 Dec 2001 12:19:30 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Yuri Karaban Cc: freebsd-arch@FreeBSD.ORG Subject: Re: gnu getopt in libc In-Reply-To: <20011222132030.GA19596@sphinx.univ.kiev.ua> Date: Sat, 22 Dec 2001 12:19:30 -0800 From: Peter Wemm Message-Id: <20011222201930.B9DEF38CC@overcee.netplex.com.au> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yuri Karaban wrote: > gnu getopt supports long options and can reorder option keys > so i can write: > some_program -a -b -c file1 file2 -d -e -f > > FreeBSD getopt in libc very simple it can recoginze only one letter > arguments, does not support optional arguments and arguments to > program may appear only at the beginning. > > so why dont replace libc/stdlib/getopt.c by gnu version ? 1) because it is nonstandard 2) it is GPL contaminated which we cannot use in libc. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message