bug-gawk
[Top][All Lists]
Advanced

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

gensub() indirectly called with more than 2 parameters: produce a strang


From: Denis Shirokov
Subject: gensub() indirectly called with more than 2 parameters: produce a strange error
Date: Tue, 21 Jan 2025 21:42:36 +0200

Hi GAWK Team!

the built-in gensub() generate strange error in case if called infirectly
with more than two parameters

to reproduce this issue run attached (example.gwk) script using:

gawk -f ./example.gwk

example:

      BEGIN{
            f = "awk::gensub"
            a = b = c = d = ""
            @f( a, b, c, d )
            }

outputs:

      gawk: ./example.gwk:7: fatal: awk::gensub: can be called indirectly
only with two arguments

two arguments? =(

Regards
Denis


reply via email to

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