bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name "index" for variable - syntax error


From: arnold
Subject: Re: Name "index" for variable - syntax error
Date: Tue, 21 Mar 2023 07:38:41 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Hello.

"index" is the name of built-in function. See
https://www.gnu.org/software/gawk/manual/html_node/String-Functions.html.

Thanks,

Arnold

<pavel_mendl@centrum.cz> wrote:

> Hi,
>
> will be brief as writing from work:
>
> as simple as 'END { index = 0 }' program shows syntax error on equal
> sign, while this should be valid assignment. Neither in Reserved words
> on gawk site nor through Google I have found anything about "index"
> to be a reserved word. However renaming to "indexa" works as expected...
>
> Please take a look about this.
>
> Pavel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]