Re: builtin() and warnings

Lawrence Velázquez <[email protected]> Wed, 14 May 2025 02:22:55 -0400
Newsgroups gmane.comp.gnu.m4.general
Message-ID <[email protected]>
On Wed, May 14, 2025, at 2:13 AM, Nikolaos Chatzikonstantinou wrote:
> With
>     len
>  we get it back as-is, but with
>     builtin(`len')
> we get a warning about too few arguments to len. Is this intentional?

Yes, according to the manual:

	Note that `indir' and `builtin' can be used to invoke
	builtins without arguments, even when they normally require
	parameters to be recognized; but it will provoke a warning,
	and result in a void expansion.

https://www.gnu.org/software/m4/manual/html_node/Builtin.html

-- 
vq