Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2017 12:55:26 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Pedro Giffuni <pfg@freebsd.org>
Cc:        John Baldwin <jhb@freebsd.org>, Baptiste Daroussin <bapt@freebsd.org>,  src-committers <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r314942 - head/usr.bin/awk
Message-ID:  <CANCZdfpEtoU8VvuL=KNhYY_9qOTJTSg74=ZKgZ0YN%2BCF2xYw5Q@mail.gmail.com>
In-Reply-To: <431fe768-f781-e19f-0e2c-bdffa9be9273@FreeBSD.org>
References:  <201703090327.v293RrEY016498@repo.freebsd.org> <5311676.nqsSxOZALl@ralph.baldwin.cx> <431fe768-f781-e19f-0e2c-bdffa9be9273@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Maybe you can bring them in here? :)

Warner

On Wed, Sep 13, 2017 at 12:37 PM, Pedro Giffuni <pfg@freebsd.org> wrote:

>
>
> On 13/09/2017 13:15, John Baldwin wrote:
>
>> On Thursday, March 09, 2017 03:27:53 AM Baptiste Daroussin wrote:
>>
>>> Author: bapt
>>> Date: Thu Mar  9 03:27:53 2017
>>> New Revision: 314942
>>> URL: https://svnweb.freebsd.org/changeset/base/314942
>>>
>>> Log:
>>>    Import the awk(1) manpage from OpenBSD
>>>       As discussed during AsiaBSDcon devsummit, import the manpage from
>>> OpenBSD which
>>>    is has been rewritten in mdoc(7) format making it readable by default
>>> with
>>>    mandoc, it also has been extended by OpenBSD to cover all awk(1)
>>> options
>>>       Obtained from:    OpenBSD
>>>    MFH:         1 week
>>>
>> One problem noted today by imp@ is that this doesn't quite document the
>> awk we
>> ship:
>>
>> % echo 42 | awk '{ print lshift($1, 1) }'
>> awk: calling undefined function lshift
>>   input record number 1, file
>>   source line number 1
>>
>> None of the bit operations described in this manpage are implemented in
>> one-true-awk.  Hmm, it seems that OpenBSD added those as a local patch
>> relative to one-true-awk in 1.10 of lex.c.  So Someone(tm) needs to
>> probably
>> compare OpenBSD's awk to one-true-awk to see what local changes they have
>> and either update the manpage here or pull the local diffs across.  (I'd
>> probably we just grab the implementation for the bitwise ops myself.)
>>
>> Hmm ...
>
> TBH, many years ago I tried to upstream the OpenBSD (actually gawk)
> extensions  but upstream (bwk) was not interested.
>
> Pedro.
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpEtoU8VvuL=KNhYY_9qOTJTSg74=ZKgZ0YN%2BCF2xYw5Q>