From owner-svn-src-all@FreeBSD.ORG Thu Sep 16 09:04:14 2010 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F89B106564A; Thu, 16 Sep 2010 09:04:14 +0000 (UTC) (envelope-from obrien@NUXI.org) Received: from dragon.nuxi.org (trang.nuxi.org [74.95.12.85]) by mx1.freebsd.org (Postfix) with ESMTP id 006C48FC23; Thu, 16 Sep 2010 09:04:13 +0000 (UTC) Received: from dragon.nuxi.org (obrien@localhost [127.0.0.1]) by dragon.nuxi.org (8.14.4/8.14.4) with ESMTP id o8G8ihUU034889; Thu, 16 Sep 2010 01:44:43 -0700 (PDT) (envelope-from obrien@dragon.nuxi.org) Received: (from obrien@localhost) by dragon.nuxi.org (8.14.4/8.14.4/Submit) id o8G8ihuk034888; Thu, 16 Sep 2010 01:44:43 -0700 (PDT) (envelope-from obrien) Date: Thu, 16 Sep 2010 01:44:42 -0700 From: "David O'Brien" To: Juli Mallett Message-ID: <20100916084442.GB21622@dragon.NUXI.org> References: <201009091927.o89JReXm022426@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 9.0-CURRENT X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? User-Agent: Mutt/1.5.16 (2007-06-09) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r212374 - head/usr.bin/printf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: obrien@FreeBSD.org List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2010 09:04:14 -0000 On Thu, Sep 09, 2010 at 12:51:11PM -0700, Juli Mallett wrote: > On Thu, Sep 9, 2010 at 12:27, David E. O'Brien wrote: > > Author: obrien > > Date: Thu Sep  9 19:27:40 2010 > > New Revision: 212374 > > URL: http://svn.freebsd.org/changeset/base/212374 > > > > Log: > >  Note bug in trying to printf(1) things like: '-%s\n' "foo" > > Should we also add something like this note to every manual page for a > program that operates on files as command line arguments after options > w.r.t. operating on files whose names begin with '-'? No. Because most programs have a synopsis like: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [-D format] [file ...] However, printf(1)'s is printf format [arguments ...] Which does not say it takes ANY command-line options. Thus why should one expect to have to trick out any command-line arguments "--" as one would with 'grep -- --i *.c'? Is a sentence or two a burden to the man page vs. saving someone the time I spent trying to figure out why printf(1) kept throwing up errors? -- -- David (obrien@FreeBSD.org)