From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id EB6363858C83 for ; Wed, 9 Mar 2022 10:03:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EB6363858C83 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 6E31D342DF1; Wed, 9 Mar 2022 10:03:17 +0000 (UTC) Date: Wed, 9 Mar 2022 05:03:23 -0500 From: Mike Frysinger To: Sebastian Huber , newlib@sourceware.org Subject: Re: [PATCH] build: Avoid length() GNU awk extension Message-ID: Mail-Followup-To: Sebastian Huber , newlib@sourceware.org References: <20220309073105.129187-1-sebastian.huber@embedded-brains.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="u1wIkIGOhknMlOBu" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2022 10:03:19 -0000 --u1wIkIGOhknMlOBu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 09 Mar 2022 04:10, Mike Frysinger wrote: > On 09 Mar 2022 03:54, Mike Frysinger wrote: > > On 09 Mar 2022 08:31, Sebastian Huber wrote: > > > Other awk implementations such as mawk do not support the length() fu= nction. > >=20 > > those awk implementations are not POSIX compliant. length() is > > *not* a GNU extension. you can see it clearly defined in POSIX: > > https://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html#tag= _20_06_13_13 >=20 > sorry, i quoted length() as used to count bytes in a string, not elements > in an array. POSIX doesn't support that. i would still argue that, while > gawk supports it, it isn't a GNU extension. bwk supported it back in 200= 2, > and gawk didn't implement it until ~2005. since it's widely supported for a long time, i sent a request to the POSIX folks to just add it :) https://www.austingroupbugs.net/view.php?id=3D1566 -mike --u1wIkIGOhknMlOBu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIoe2sACgkQQWM7n+g3 9YE+6A//bt0GgbB2plSoZb2qx3cLBl+HCmFWKGy3Whu0VRH82fZVfNJPnMoXU/QP pDXLRY+JDXMGW7YYVlimbvAKCuSUMYTwYcqUiJwYg75MDWKJlYMwb93TJkkxmmmy GJHztpqSexVWgcNgAhTYH/4fiRVhjessCFCpZNYmVysFbFLtW3e/DXuaJNuQg5DE GmxaPMsn9DOXAh44gx/36syLCVSyQUI/47nT4MqHE+9Z0slcLOo7l9a2rVlGv0m/ 61ul3NZq7ilTn89w4DMpf9N/ZJ0/ZSnnzgXpdjv2WlnTSNh3rleoVVCjWJW7Cpgv Y1/IrRsvtDXl95q0oxjlF0ATDSLEtoNjxGwAONzSVimnjavsT9FbtbpOw/jJqKfP aQ3jIHdm6T8kwuQ1C76dDQdlswcXhAS5LmFSfYiR2twxVX+XF3EQIzfQ07Z0ar44 KemlvjQGWOvrIH6/0rtd9eVSS7rSYAzZETGPVy/4Qg7bQDqcH3LN/9ISty0SzvXr rECUzBfdzogkOJJJLWBR8G9RjyTsVafMndHC4E5SDLACdtlFt2Xy/pSNrl+topDf LR98eshPG8FqZJWR0CAtah0bqldtOl8Clq8/VLgopOIw/LJ/kFMXI4GYVpJZl486 JBK4nWhX50v/IQypcj+Xy7tLsj+VTfZzupvoMpwdrVNcpcmjYQ0= =j/eB -----END PGP SIGNATURE----- --u1wIkIGOhknMlOBu--