DragonFly commits List (threaded) for 2009-08
DragonFly BSD
DragonFly commits List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: git: Revert "printf(1): don't use getopt"


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Thu, 20 Aug 2009 20:03:02 +0200

Matthew Dillon wrote:
commit d61bf633159588699c95f84c439c17a05a656aef
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Thu Aug 20 09:28:56 2009 -0700

Revert "printf(1): don't use getopt"
This reverts commit 8a65ba3d8f8a805773a99458f6f18f034ad84d57.
printf.c is included by /bin/sh, and the internalized version is
used by apropos which passes it '-- fmt ...'. FreeBSD and NetBSD
and probably others use getopt(). We have to too or we break --
use.

This is simply wrong. If you don't want to print --, don't pass it. This is a clear violation of the standard. If NetBSD and FreeBSD feel like doing this, fine, but we should not.


cheers
 simon




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]