From owner-svn-src-all@freebsd.org Wed Sep 13 18:15:46 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A8B2E08CFC; Wed, 13 Sep 2017 18:15:46 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2744270F07; Wed, 13 Sep 2017 18:15:46 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id BF0E110A7B9; Wed, 13 Sep 2017 14:15:44 -0400 (EDT) From: John Baldwin To: Baptiste Daroussin Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r314942 - head/usr.bin/awk Date: Wed, 13 Sep 2017 11:15:39 -0700 Message-ID: <5311676.nqsSxOZALl@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <201703090327.v293RrEY016498@repo.freebsd.org> References: <201703090327.v293RrEY016498@repo.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Wed, 13 Sep 2017 14:15:44 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list 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: Wed, 13 Sep 2017 18:15:46 -0000 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.) -- John Baldwin