[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gensub() indirectly called with more than 2 parameters: produce a st
From: |
arnold |
Subject: |
Re: gensub() indirectly called with more than 2 parameters: produce a strange error |
Date: |
Wed, 22 Jan 2025 03:18:33 -0700 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
I decided to leave things alone. Thanks.
arnold@skeeve.com wrote:
> "Arguments" is a synonym for "parameters". I will see if it makes
> sense to try to use only one term everywhere.
>
> Thanks,
>
> Arnold
>
> Denis Shirokov <cosmogen@gmail.com> wrote:
>
> > 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