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

Mike Frysinger vapier@gentoo.org
Wed Mar 9 08:54:35 GMT 2022


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20220309/014814c1/attachment.sig>


More information about the Newlib mailing list