Re: [PATCH] build: Avoid length() GNU awk extension

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <YihrS9u/4oDnYKyB@vapier>
On 09 Mar 2022 08:31, Sebastian Huber wrote:
> Other awk implementations such as mawk do not support the length() function.

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

that said, mawk does support length(), and has since at least 2008 in
the 1.3.3 release.  i stopped looking back further in the history.

so you're going to have to provide a bit more info as to what you're
trying to do here, and what tools & versions exactly you're using.
-mike
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIoa0oACgkQQWM7n+g3
9YHAJRAAnsbL6y+1KtFpH/UfME1gMvgWaVaIMwuF6+aORlWDXM/HdcTC6Dtv3SMu
a+O7eSOkWCly8WFvwnUpQ1+/27y5eI7WVmGN1f9whKpFFHTtFx21cBW/6cHxWFrW
RfjEG/IhNwO4A0/ziCP3IYKzAD1kKyqUHTq7dgr04StcXIw1a4ovRqY5lcC35apE
gVKZC7uTNhCkClBgFPM2KaHT4Ofs8p8fJtftmxS5c0ZwXgl/lWHH8i3vEZ4xBg23
u2/OwKvF6s20DuaLi9AgRAwiWUngH12HY0vDhNoRKKjFNvipkGYeiVCkBTUNO2ug
2yaHvgxLlgIHTEcpQuMceyOw+O2qeh7pzBZZvj76GfjtucouTWPRCqLAn7eKfIVv
PIv97HljinGetEdu8hrQ/In3+TPHS1fCyZVag4Ufd0n7134vdvL7/Pxo5BPsSBAB
rs2XNLWCC3PyoiZftvVfY/txUWStLogYqET9XUCwGjG4wGLZciNAnX0MLkkjuV+Z
2qlW22CDtkE9fOvEe/uyxbx8++zVrhW1oPPU0LIJi7X8s90tZocU9eQoueUvCzm1
5fEP6/L+XNXv/4jBd/mBp5lCJDvfPCGz7wIPFlCkR3D1kTapu0GRDdRC1zlXYp8F
ikO7WMBBA5psj9E28HkKEKNAZOO0CbfdEBuVItIpoda6s053r9g=
=D1IF
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.