bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Another typeof() issue


From: Aharon Robbins
Subject: Re: [bug-gawk] Another typeof() issue
Date: Mon, 29 Jun 2015 19:58:36 +0300
User-agent: Heirloom mailx 12.5 6/20/10

Hi.

> Date: Mon, 29 Jun 2015 07:46:20 +0200
> From: Hermann Peifer <address@hidden>
> To: address@hidden
> CC: address@hidden
> Subject: Re: [bug-gawk] Another typeof() issue
> > take a look.
>
> Once you are looking at the debugger, here 2 surprising error messages:
>
> $ echo 'BEGIN{a; b[1]}' > test.awk
>
> $ awk -D -f test.awk
> gawk> eval "typeof(a)"
> awk: cmd. line:1: error: attempt to use non-function `typeof' in 
> function call
> gawk> eval "isarray(b)"
> awk: cmd. line:1: error: function name address@hidden' previously defined

These are not related to typeof or isarray. Any builtin function
that is a gawk extension over standard awk has this problem.

I have a fix which I'll push once I also add a test case.

Thanks!

Arnold



reply via email to

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