Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2014 19:53:50 -0500
From:      Pedro Giffuni <pfg@freebsd.org>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r267745 - head/lib/libc/stdlib
Message-ID:  <4D4D1F62-4482-4CB5-8352-E888DA617789@freebsd.org>
In-Reply-To: <20140622234855.GM23976@ivaldir.etoilebsd.net>
References:  <201406222013.s5MKDwHw045376@svn.freebsd.org> <20140622234855.GM23976@ivaldir.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help

Il giorno 22/giu/2014, alle ore 18:48, Baptiste Daroussin =
<bapt@FreeBSD.org> ha scritto:

> On Sun, Jun 22, 2014 at 08:13:58PM +0000, Pedro F. Giffuni wrote:
>> Author: pfg
>> Date: Sun Jun 22 20:13:57 2014
>> New Revision: 267745
>> URL: http://svnweb.freebsd.org/changeset/base/267745
>>=20
>> Log:
>>  getopt(3): recognize option:: as GNU extension for "optional =
options".
>>=20
>=20
> Will that allow to have sed -i acting like sed -i '=92 ?

Hmm .. yes.

> If yes that will help a lot with GNU compatibility, porters will like =
it :)
>=20


The illumos guys did it long ago on their fork of our BSD sed:

https://www.illumos.org/issues/586

so a patch is available[1].

There was also a discussion/bikeshed about how ugly and non-unixish such =
an extension is.

Pedro.


[1]
=
http://src.illumos.org/source/diff/illumos-gate/usr/src/cmd/sed/main.c?r1=3D=
/illumos-gate/usr/src/cmd/sed/main.c@d15978eab6c23a98f0a5474466d5fe9b1be3c=
a9b&r2=3D/illumos-gate/usr/src/cmd/sed/main.c@e50226eccc6dfcba3cc6f0df3843=
8900e3df225c&format=3Du&full=3D0





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D4D1F62-4482-4CB5-8352-E888DA617789>