bug-gawk
[Top][All Lists]
Advanced

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

Re: gawk: "please file a bug report"


From: arnold
Subject: Re: gawk: "please file a bug report"
Date: Sun, 05 Sep 2021 05:24:38 -0600
User-agent: Heirloom mailx 12.5 7/5/10

$ cat > strnum.awk
BEGIN {
        n = split("1 2 3 4", a)
        print typeof(a[1])
}
$ ./gawk -f  strnum.awk
strnum

See the manual.

Arnold

Denis Shirokov <cosmogen@gmail.com> wrote:

> i also have a question about the typeof() function and it's "strnum"
> returned value.
>
> may someone provide an example how can i get "strnum" from typeof() ?
>
> i never seen "strnum" from the typeof()
>
> and is it correct that in my code I equate the "strnum" type as the
> same as the "number" type?
>
> thanks
> Denis
>
> 2021-09-05 14:05 GMT+03:00, Denis Shirokov <cosmogen@gmail.com>:
> > oh i'm sorry - I was in a hurry and gave a little incorrect information
> >
> > here is the updated script - the issue is also reproducible in BEGIN
> > area (not only in user defined function) but gensub/sub/gsub must
> > MATCH
> >
> > with Respect
> >
> > Denis Shirokov
> >



reply via email to

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