From owner-svn-src-all@freebsd.org Wed Sep 13 18:40:02 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 B3C79E09BFD for ; Wed, 13 Sep 2017 18:40:02 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm13-vm4.bullet.mail.ne1.yahoo.com (nm13-vm4.bullet.mail.ne1.yahoo.com [98.138.91.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7E2A471AEF for ; Wed, 13 Sep 2017 18:40:02 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1505327836; bh=MlvcPt7AZCO04MjHG7VpIKUFmleTDTgzultUZSeYMZU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=Y39GC++FcmlL/CGr/y3dzBi7X1K+HTOSyK8AsC8J23suEFsVllBUxNqoe0WFvVcOcx51e57Z+ZRQ539c8i53K02aKkjnr7HOupC6CCIZkBXpZyHd+8ehabMlSe+CgtPJamv9Ebh9xWqmcka/yEnS9HPlFzPAk9npGjH2c6FMRbMYuppfgI5iXDKZYLGxV0srAcgm7nIh48UZThV5OJIJzQNdYL4Dvsh84UMpoQyncD0clnWu/Lkm9F8Ahnn+yKbeXvjcUlbffl9QvmiwnuKdiXq9H336x6FW47CxL/AKg/0+MPH/JdmOXX92xri35wBqaU/yJZfRLtrEoCiB4oBiEg== Received: from [98.138.101.129] by nm13.bullet.mail.ne1.yahoo.com with NNFMP; 13 Sep 2017 18:37:16 -0000 Received: from [98.138.84.43] by tm17.bullet.mail.ne1.yahoo.com with NNFMP; 13 Sep 2017 18:37:15 -0000 Received: from [127.0.0.1] by smtp111.mail.ne1.yahoo.com with NNFMP; 13 Sep 2017 18:37:15 -0000 X-Yahoo-Newman-Id: 982245.51129.bm@smtp111.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: E2fPxXIVM1lmr8NB_8tl0blaErb4z6S6DMQ2.amAYDahdoC QzKPLzZXv8hpkztdVwHTHZEwjRQXee9pxEDQ2VtbNQMvEcE5FR9nrfApzyiY .4VbGb_vCD3K1B2elyDMCFhI.H7VbZCz7wtFSB1K9ZiPhKBtrEwPJnvnEM5S xGQ8VR2FLK_xYgnuVCt9LYObDMuLCFgw8HVcs6sHkGiyKaOO7Alexi8fHABG mJz7CXJVpZzC83NB.jYOutojaNbPKvDlfhpYfXO4NqdNSCPp5b7J6ev3dmDg QqZaRuoh7UwRCOWJQ8McGs9kmuUYE7z.Dz48TCJw_ZRhEXirH6fri_.xicvf QrAyVH_ARRBrAVkfNXI1qb7ZlUQE070uaaDGa3e51QpdjW_S_wsI587QMeg2 LolGcZlW5jJi6yncLRepXup3aRUYYDymTdAN1YnlAGDLNm0B.J.dMUS1LeHd xWp65_DBw28MylBk0xRfbe048gq9xi7QLFuS2igBwj7N3XYACTp8- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Subject: Re: svn commit: r314942 - head/usr.bin/awk To: John Baldwin , Baptiste Daroussin Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201703090327.v293RrEY016498@repo.freebsd.org> <5311676.nqsSxOZALl@ralph.baldwin.cx> From: Pedro Giffuni Organization: FreeBSD Project Message-ID: <431fe768-f781-e19f-0e2c-bdffa9be9273@FreeBSD.org> Date: Wed, 13 Sep 2017 13:37:14 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <5311676.nqsSxOZALl@ralph.baldwin.cx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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:40:02 -0000 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.