Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wNBZZ-000dWX-2H for pgsql-hackers@arkaria.postgresql.org; Wed, 13 May 2026 15:32:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wNBZY-009cZQ-1R for pgsql-hackers@arkaria.postgresql.org; Wed, 13 May 2026 15:32:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wNBZY-009cZ8-0T for pgsql-hackers@lists.postgresql.org; Wed, 13 May 2026 15:32:32 +0000 Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wNBZV-00000000O7E-3BIp for pgsql-hackers@lists.postgresql.org; Wed, 13 May 2026 15:32:31 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.phl.internal (Postfix) with ESMTP id 910CA1400086; Wed, 13 May 2026 11:32:29 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 13 May 2026 11:32:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1778686349; x=1778772749; bh=xCd3dltRkAL3cjSdZz1gYACBBI4B0Jo47xvw+2SnnEM=; b= awZpbBus1Bf2Ai3jcSmdKlYLMMMA9UlhoICYWgltk2n22DscNyyYjTWFiw3k1P5D zSRIMt+R0Nqk0wMawHGNOahGBr+R6LwqU+qRI7XZ8E3gCjeOwRIySZRczHswfmel nKg4NIXrww0F/LibVOQOk0QfWProV3FeEZy0dlkutizpUDP7xdiDcgPwXDSMakXp /wYb+sCiKuAtmS60XC4nKdTEwbuTjpefvwB+LQsK5KSYcZme8doCjprguwacer75 pKIwwFtgIXbmrcm3Qm3tqDNCDMvAE+2SbFIgi7E0aQJpGgxMGDvxtaOTD22MD5FY dcERH3ipJQAKPNUtzXoYMg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1778686349; x=1778772749; bh=x Cd3dltRkAL3cjSdZz1gYACBBI4B0Jo47xvw+2SnnEM=; b=vfxquG/v6NjkdFUxU 8MlaGFoeH2GTMwU2uxGFhnSqOgjoxkBkjq8YEgoHCFmyvjYJc+tqgcKDZFCT9fJj PVq+qoPlJb8Sx8sBD/48U3fB/a91M/AEuIC3o3ZDJJE7+AMyXPWV+HRPb3f/jLYz Z94FRTF/JOTkvOcJZRJjE65iA8xf4yJIM38tgMARma6XSgyURE7qElniXG/R3Drh g9BxeRJII/qTomXGSx54OAQcDWQ/lNqhQ6E3zjmY0napGA/Pvw2GQqgs/U678Ok0 8B0wiKSoer8zGOWV/Gj6QZ91r6O0Un9ZHW5HVzFQ8aQxBH4usfrBzP023FgkL/0+ MTOpg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduvdehtdefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertd dtvdejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegv ihhsvghnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhepheeivdfhuefhueeggf efheegjedtveeuhfethfeufedvudfgtdeuhefgfeduhfffnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruh htrdhorhhgpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphht thhopehtghhlsehsshhsrdhpghhhrdhprgdruhhspdhrtghpthhtohepphhgshhqlhdqhh grtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 May 2026 11:32:28 -0400 (EDT) Message-ID: <45b40fd1-1865-44e4-9030-123c52aefda3@eisentraut.org> Date: Wed, 13 May 2026 17:32:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: egrep is obsolescent To: Tom Lane , pgsql-hackers@lists.postgresql.org References: <473272.1778685870@sss.pgh.pa.us> Content-Language: en-US From: Peter Eisentraut In-Reply-To: <473272.1778685870@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 13.05.26 17:24, Tom Lane wrote: > While running pgperltidy just now on my recently-updated > Linux workstation, I got > > $ src/tools/pgindent/pgperltidy . > egrep: warning: egrep is obsolescent; using grep -E > > OK, that's a bit in-your-face, but it's not inaccurate. > AFAICT, "egrep" has never been in POSIX, while "grep -E" > has been there at least since POSIX 2008. > > So I propose the attached patch, which is just s/egrep/grep -E/g. Looks good to me. > I did not touch the two usages in port/aix/mkldexport.sh, though. > I'm not sure what the standardization situation is in AIX, and > this warning doesn't seem like something they'd do anyway. It appears that those invocations don't actually need the "e" part of egrep, so they could just be grep? > There is also a reference in configure, which is not a problem > because it tries "grep -E" first. Yeah, Autoconf addressed this some decades ago, so it should be fine.