From owner-svn-src-head@freebsd.org Wed Sep 13 18:55:28 2017 Return-Path: Delivered-To: svn-src-head@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 77CD7E0A5CB for ; Wed, 13 Sep 2017 18:55:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3ACFA723CF for ; Wed, 13 Sep 2017 18:55:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22d.google.com with SMTP id o200so5566904itg.0 for ; Wed, 13 Sep 2017 11:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=/ReiVlY77gCzQ59qubT43Z70jYUokQuiE8knm+ZSf8E=; b=FeKYNc2Wkt3b0Fo4szaaT0Nt/Ss4ouYX/Gyq73x88V3Zl5qo9cfBVZ8WuxrHieVtvo FHf+8jHv4MUCQMDW8lyJ0MjLqj20RBtyozxwszdyqXzfrHECcnRB0j5j1mHYeLr1wrY5 0gMPQJdAyshyoAH1loQklhFQQAZt2esj+mhT1L6m4HwZoR6J+KWY03VCYO//15hdkRou XunJNRzH4HkZf2Wy3V7JDfc/vPmAGHYcvT+L94/xtwoadPN12xXC1bVcFLcdyUEvjxFD 07NtrGXOGgPv4ApSQYXWtefKizi7USbce3k1HsNuj2kvtAX04RC7c9+vB2eQs4t89Kp6 /c9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=/ReiVlY77gCzQ59qubT43Z70jYUokQuiE8knm+ZSf8E=; b=M5ay+HqVXRQUCf+DTXPcxE+v9u2JohpgCQnzcidUfSOvWOtAYrDg+rbqExiMnHbvf8 KOJi1ZYokaAxReQVV2n9AmtmtW59vM/Iev50CU69S0E+xp9LTAOc+FWyWgxlgFcFH7pg ISi66X8xNMHQtcs+nJP4TduQUCVuUqekYQliBcHFatUu3oX1AqvSFAz+xRTz3avh5STE bTYVqTockzAyL7LDbOAY/51OOoBy69+FCCIl1ryBstGd4HCU/xd6Ul9Cg6U4bPcWmf55 A4UBMdDgLqbWKQLXtzr1bFtduWHyLnvgcgms1EqTUKexQLEABvdp0ejVU/jg9GA9MSa2 Yw5Q== X-Gm-Message-State: AHPjjUj9rgOLGiSkCh0I+QwlPYHdDXLNrKbx4gxROLRM/sgjjUoKvU0H HBF23mxFSuQuI+7ExgXl1BbblIjTIjZqwWxo6OQeOw== X-Google-Smtp-Source: AOwi7QCmdKhRuit+z6TAhlTYY6mDzOJbqn43YIYk9X/wlHaoUGq/JkH7HWEbKCnlV1OqU0VdnX3nIWFafd6Vya5p07Q= X-Received: by 10.36.254.72 with SMTP id w69mr5653337ith.130.1505328927301; Wed, 13 Sep 2017 11:55:27 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.10.71 with HTTP; Wed, 13 Sep 2017 11:55:26 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:60a7:d7e6:aef8:c203] 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> From: Warner Losh Date: Wed, 13 Sep 2017 12:55:26 -0600 X-Google-Sender-Auth: N8hvXur-q1dqg__RLdUQkL-ertk Message-ID: Subject: Re: svn commit: r314942 - head/usr.bin/awk To: Pedro Giffuni Cc: John Baldwin , Baptiste Daroussin , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 18:55:28 -0000 Maybe you can bring them in here? :) Warner On Wed, Sep 13, 2017 at 12:37 PM, Pedro Giffuni 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. > >