From owner-freebsd-arch Sat Dec 22 12:13:32 2001 Delivered-To: freebsd-arch@freebsd.org Received: from titanic.uninet.kiev.ua (titanic.uninet.kiev.ua [193.125.78.35]) by hub.freebsd.org (Postfix) with ESMTP id 411AD37B405 for ; Sat, 22 Dec 2001 12:13:23 -0800 (PST) Received: (from uucp@localhost) by titanic.uninet.kiev.ua (8.11.1/8.11.1) with UUCP id fBMKDDQ70486 for freebsd-arch@freebsd.org; Sat, 22 Dec 2001 22:13:13 +0200 (EET) (envelope-from ura@sphinx.univ.kiev.ua) Received: by sphinx.univ.kiev.ua (Postfix, from userid 1001) id 00A4C59201; Sat, 22 Dec 2001 15:20:30 +0200 (EET) Date: Sat, 22 Dec 2001 15:20:30 +0200 From: Yuri Karaban To: freebsd-arch@freebsd.org Subject: gnu getopt in libc Message-ID: <20011222132030.GA19596@sphinx.univ.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.24i 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 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 ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message