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: Ed Morton
Subject: Re: Name "index" for variable - syntax error
Date: Tue, 21 Mar 2023 08:37:30 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

`index()` is a string function, see https://www.gnu.org/software/gawk/manual/gawk.html#String-Functions.

    Ed.

On 3/21/2023 4:30 AM, 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]