svn commit: r267745 - head/lib/libc/stdlib

Pedro Giffuni pfg at freebsd.org
Mon Jun 23 00:55:06 UTC 2014


Il giorno 22/giu/2014, alle ore 18:48, Baptiste Daroussin <bapt at 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
>> 
>> Log:
>>  getopt(3): recognize option:: as GNU extension for "optional options".
>> 
> 
> Will that allow to have sed -i acting like sed -i '’ ?

Hmm .. yes.

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


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=/illumos-gate/usr/src/cmd/sed/main.c@d15978eab6c23a98f0a5474466d5fe9b1be3ca9b&r2=/illumos-gate/usr/src/cmd/sed/main.c@e50226eccc6dfcba3cc6f0df38438900e3df225c&format=u&full=0




More information about the svn-src-all mailing list