NetBSD Problem Report #14702
Received: (qmail 8146 invoked from network); 24 Nov 2001 05:14:28 -0000
Message-Id: <20011124051426.F11D2D97CE@snark.piermont.com>
Date: Sat, 24 Nov 2001 00:14:26 -0500 (EST)
From: perry@piermont.com
Reply-To: perry@piermont.com
To: gnats-bugs@gnats.netbsd.org
Subject: xargs man page lies
X-Send-Pr-Version: 3.95
>Number: 14702
>Category: standards
>Synopsis: xargs man page lies
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kleink
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Nov 24 05:15:00 +0000 2001
>Closed-Date: Sun Jul 13 12:59:33 +0000 2014
>Last-Modified: Wed Jul 16 01:30:05 +0000 2014
>Originator: Perry E. Metzger
>Release: NetBSD-current Nov 24, 2001
>Organization:
Perry E. Metzger perry@piermont.com
--
"Ask not what your country can force other people to do for you..."
>Environment:
System: NetBSD snark.piermont.com 1.5Y NetBSD 1.5Y (SNARK) #0: Wed Oct 17 11:56:10 EDT 2001 perry@alchemist:/usr/src/sys/arch/i386/compile/SNARK i386
Architecture: i386
Machine: i386
>Description:
The xargs man page mentions a -I option at the top, but gives
no further mention of it in the rest of the docs. This option
is not implemented in the code. -I is documented, however, in
SuS2, along with a number of other options we do not implement
that we probably should to be standards conformant.
See, for example:
http://www.opengroup.org/onlinepubs/007908799/xcu/xargs.html
>How-To-Repeat:
man xargs, vi the code, look at the web page above
>Fix:
Probably someone should start with the Austin Group document
and implement whatever it requires of xargs, then document it.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed
State-Changed-By: kleink
State-Changed-When: Sat Nov 24 09:22:50 PST 2001
State-Changed-Why:
This is indeed a problem.
Responsible-Changed-From-To: standards-manager->kleink
Responsible-Changed-By: kleink
Responsible-Changed-When: Sat Nov 24 09:22:50 PST 2001
Responsible-Changed-Why:
There is a posting by Masao Uebayashi on tech-userlevel dated August 16, 2001
which implements -I and -i; it's still pending in pre-review state. I'll
have a look at it and will either integrate it or come up with something
of my own if necessary.
State-Changed-From-To: analyzed->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 10 Mar 2008 09:07:32 +0000
State-Changed-Why:
We now seem to have everything besides -i, -l, and -e, which optionally take
an argument (thus breaking getopt) -- are they really worth it? I deduce from
the commit log that FreeBSD may not think so.
From: "Perry E. Metzger" <perry@piermont.com>
To: gnats-bugs@NetBSD.org
Cc: dholland@NetBSD.org
Subject: Re: standards/14702 (xargs man page lies)
Date: Mon, 10 Mar 2008 07:08:56 -0400
dholland@NetBSD.org writes:
> We now seem to have everything besides -i, -l, and -e, which optionally take
> an argument (thus breaking getopt) -- are they really worth it? I deduce from
> the commit log that FreeBSD may not think so.
If we want to claim to be standards conformant we probably have to
implement the standard...
Perry
State-Changed-From-To: feedback->open
State-Changed-By: perry@NetBSD.org
State-Changed-When: Thu, 20 Mar 2008 13:36:33 +0000
State-Changed-Why:
State-Changed-From-To: open->closed
State-Changed-By: mbalmer@NetBSD.org
State-Changed-When: Sun, 13 Jul 2014 12:59:33 +0000
State-Changed-Why:
xargs gained the -I option in revision 1.16 of /usr/src/usr.bin/xargs/xargs.c.
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: standards/14702 (xargs man page lies)
Date: Sun, 13 Jul 2014 21:24:33 +0000
Not sent to gnats:
------
From: "Perry E. Metzger" <perry@piermont.com>
To: mbalmer@NetBSD.org
Cc: kleink@NetBSD.org, netbsd-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: standards/14702 (xargs man page lies)
Date: Sun, 13 Jul 2014 13:36:11 -0400
On Sun, 13 Jul 2014 12:59:34 +0000 (UTC) mbalmer@NetBSD.org wrote:
> Synopsis: xargs man page lies
>
> State-Changed-From-To: open->closed
> State-Changed-By: mbalmer@NetBSD.org
> State-Changed-When: Sun, 13 Jul 2014 12:59:33 +0000
> State-Changed-Why:
> xargs gained the -I option in revision 1.16
> of /usr/src/usr.bin/xargs/xargs.c.
>
>
>
What about -i, -l, and -e (see the PR)?
--
Perry E. Metzger perry@piermont.com
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, kleink@NetBSD.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, perry@piermont.com
Cc:
Subject: Re: standards/14702 (xargs man page lies)
Date: Sun, 13 Jul 2014 21:35:50 -0400
On Jul 13, 9:25pm, dholland-bugs@netbsd.org (David Holland) wrote:
-- Subject: Re: standards/14702 (xargs man page lies)
| What about -i, -l, and -e (see the PR)?
These predate -I -L and -E (the POSIX versions) and are documented to
be obsolete in the linux man page. Although our getopt supports optional
arguments now, it is not worth it in my opinion to emulate obsolete behavior.
This PR is another proof to my theorem: Wait long enough and every problem
gets magically fixed.
christos
From: "Perry E. Metzger" <perry@piermont.com>
To: christos@zoulas.com (Christos Zoulas)
Cc: gnats-bugs@NetBSD.org, kleink@NetBSD.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: standards/14702 (xargs man page lies)
Date: Sun, 13 Jul 2014 22:25:23 -0400
On Sun, 13 Jul 2014 21:35:50 -0400 christos@zoulas.com (Christos
Zoulas) wrote:
> On Jul 13, 9:25pm, dholland-bugs@netbsd.org (David Holland) wrote:
> -- Subject: Re: standards/14702 (xargs man page lies)
>
> | What about -i, -l, and -e (see the PR)?
>
> These predate -I -L and -E (the POSIX versions) and are documented
> to be obsolete in the linux man page.
POSIX doesn't seem to indicate that they're obsolete. It lists them
at any rate, and describes their functions without deprecating them.
http://pubs.opengroup.org/onlinepubs/7908799/xcu/xargs.html
> Although our getopt supports
> optional arguments now, it is not worth it in my opinion to emulate
> obsolete behavior.
>
> This PR is another proof to my theorem: Wait long enough and every
> problem gets magically fixed.
>
> christos
>
--
Perry E. Metzger perry@piermont.com
From: christos@zoulas.com (Christos Zoulas)
To: "Perry E. Metzger" <perry@piermont.com>
Cc: gnats-bugs@NetBSD.org, kleink@NetBSD.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: standards/14702 (xargs man page lies)
Date: Sun, 13 Jul 2014 22:58:08 -0400
On Jul 13, 10:25pm, perry@piermont.com ("Perry E. Metzger") wrote:
-- Subject: Re: standards/14702 (xargs man page lies)
| On Sun, 13 Jul 2014 21:35:50 -0400 christos@zoulas.com (Christos
| Zoulas) wrote:
| > On Jul 13, 9:25pm, dholland-bugs@netbsd.org (David Holland) wrote:
| > -- Subject: Re: standards/14702 (xargs man page lies)
| >
| > | What about -i, -l, and -e (see the PR)?
| >
| > These predate -I -L and -E (the POSIX versions) and are documented
| > to be obsolete in the linux man page.
|
| POSIX doesn't seem to indicate that they're obsolete. It lists them
| at any rate, and describes their functions without deprecating them.
|
| http://pubs.opengroup.org/onlinepubs/7908799/xcu/xargs.html
Heh, looking at the 1997 man page will give you such information!!! :-)
Instead if you look the the "fresh" 2004 version:
http://pubs.opengroup.org/onlinepubs/009604599/utilities/xargs.html
You'll also see the rationale for their removal.
christos
From: "Perry E. Metzger" <perry@piermont.com>
To: christos@zoulas.com (Christos Zoulas)
Cc: gnats-bugs@NetBSD.org, kleink@NetBSD.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: standards/14702 (xargs man page lies)
Date: Mon, 14 Jul 2014 09:25:31 -0400
On Sun, 13 Jul 2014 22:58:08 -0400 christos@zoulas.com (Christos
Zoulas) wrote:
> Heh, looking at the 1997 man page will give you such
> information!!! :-) Instead if you look the the "fresh" 2004 version:
>
> http://pubs.opengroup.org/onlinepubs/009604599/utilities/xargs.html
>
> You'll also see the rationale for their removal.
You are indeed correct.
--
Perry E. Metzger perry@piermont.com
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: standards/14702 (xargs man page lies)
Date: Wed, 16 Jul 2014 01:25:14 +0000
On Mon, Jul 14, 2014 at 01:30:01PM +0000, Perry E. Metzger wrote:
> On Sun, 13 Jul 2014 22:58:08 -0400 christos@zoulas.com (Christos
> Zoulas) wrote:
> > Heh, looking at the 1997 man page will give you such
> > information!!! :-) Instead if you look the the "fresh" 2004 version:
> >
> > http://pubs.opengroup.org/onlinepubs/009604599/utilities/xargs.html
> >
> > You'll also see the rationale for their removal.
>
> You are indeed correct.
All right, in that case this issue is definitely dead. (it's already
closed, so it's staying that way.)
--
David A. Holland
dholland@netbsd.org
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.