From nobody Fri Apr 21 16:33:13 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q30Sp1ptWz46bhN; Fri, 21 Apr 2023 16:33:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q30Sp1JZ0z3GNv; Fri, 21 Apr 2023 16:33:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682094794; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hlb+z6gFRERNb2rxFnbUCtSeb4M/Uua5hyHxmcdmtHs=; b=mWodI34mZblulLQAhCRaL0TskoTNZNg6j5Qq/i1JwqU7mi5l/TgQbRGzcSZ09JptAefg7J NQ7tqGM3wX0DsE9xSuoDaF5ILA9zdGKkFw4haFx9kYliVGcnzZkqpTkLjJ225ifyuK0SG6 L3FSgFnQEO7Xzx8T2ZCLUdUdVa9v++LbnCx0Qvgv+V9t4zt9R7pRY7VMYysr4btYVn8qUy geH2LiUbpXbSAutBVJhGn4J3HV5LI4+N8t0r9wdm/LD7g2DEFX3IF8sHiEF9VRNvUq3QO8 IvtPtXYsnca3A9sLRwHq/bMSh2SyeHOcUO5YCZYpLSVXA7izFgO08kbJTQJ0tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682094794; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hlb+z6gFRERNb2rxFnbUCtSeb4M/Uua5hyHxmcdmtHs=; b=shXQFU/vxM9V/pyWp2fHY/nHGgB5w6L5Yp5c8TQ7zMua+s8K5nhTm7IIxvqiVDQ5Ny+7Ym 3T5i8Wnr9hdUse1xw2xLgMCVlG3b1BWAnVNjiQtHAaN38+0h8r1GMZMZ1rCkEIy7SO1lwe sN3wtTfIBzYVgXtCqUViVPecgrxo0/Q1FFDcjc+v8TUsCuEzb9K9VAhMIlYFRnz5Mb023L KEM+blwT8FoURCcuIkmQ2J5DwDoIU8Yt/oltte34xP0LJJt1ZeKqhGI1RhQKSAbtUQaJrY f3XJQ/uR8CfEHgAMDdu95lDSO+i9HZrDdwfv7tTAU6ldcseKbILrjIzOpdGdRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682094794; a=rsa-sha256; cv=none; b=P6d/lb3Kw65AVttbCy4CKnZ9w5ZMTQSK4YxQ9wBVgPxp3nKYdC5/Gd21QbEzItwZhWx6mA m25Omu/jeBTUBcSB69qxp6hrRh33tz9pvoBf1MhiBbKnCjYmHi7LucrK5OZfN85lGQJ2qL pg+PQfoAdOTCaxJO0z3dI/jErwJ+fALN5Cutqn/XFcysz+muSeOS4PbCiHRPzCsf2P6BLF YvaepycPQ8Frh8ip8oX9kYAhyoz4w19nsdCvrDC8mby5Ksi0yknxGga3Xbwtr3sdG0eP2A 8uRhgQ6OEa269z2hzVDDHLjhzxApsrBtU1mbiRp+cXAkALYpgl5Skezq77CJpg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q30Sp0MXwzR8g; Fri, 21 Apr 2023 16:33:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33LGXDkI048455; Fri, 21 Apr 2023 16:33:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33LGXDYG048454; Fri, 21 Apr 2023 16:33:13 GMT (envelope-from git) Date: Fri, 21 Apr 2023 16:33:13 GMT Message-Id: <202304211633.33LGXDYG048454@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 2c19beeed231 - main - newvers: Use correct regexp List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2c19beeed2312e5b19b073532ef708d64255a1e3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=2c19beeed2312e5b19b073532ef708d64255a1e3 commit 2c19beeed2312e5b19b073532ef708d64255a1e3 Author: Warner Losh AuthorDate: 2023-04-21 16:14:41 +0000 Commit: Warner Losh CommitDate: 2023-04-21 16:24:25 +0000 newvers: Use correct regexp There's no need to quote the # here. Inside of regexp, it's not treated like a comment from an awk perspective. And inside if '' it's not treated as special by the shell. gawk also warns. Sponsored by: Netflix --- sys/conf/newvers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index f3c437269026..85346b1cdc29 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -65,7 +65,7 @@ if [ -z "${SYSDIR}" ]; then SYSDIR=$(dirname $0)/.. fi -RELDATE=$(awk '/^\#define[[:space:]]*__FreeBSD_version/ {print $3}' ${PARAMFILE:-${SYSDIR}/sys/param.h}) +RELDATE=$(awk '/^#define[[:space:]]*__FreeBSD_version/ {print $3}' ${PARAMFILE:-${SYSDIR}/sys/param.h}) if [ -r "${SYSDIR}/../COPYRIGHT" ]; then year=$(sed -Ee '/^Copyright .* The FreeBSD Project/!d;s/^.*1992-([0-9]*) .*$/\1/g' ${SYSDIR}/../COPYRIGHT)