bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Warning message issued with no source line number


From: Peter J. Farley III
Subject: Re: [bug-gawk] Warning message issued with no source line number
Date: Tue, 16 May 2017 23:34:25 -0400

> -----Original Message-----
> From: Andrew J. Schorr [mailto:address@hidden
> Sent: Tuesday, May 16, 2017 8:52 PM
> To: Peter J. Farley III
> Cc: address@hidden
> Subject: Re: [bug-gawk] Warning message issued with no source line
> number
> 
> On Tue, May 16, 2017 at 08:34:01PM -0400, Peter J. Farley III wrote:
> > Many thanks Andy.  My eyes just glazed on past that multi-line
> > statement without seeing the missing continuation character.
> 
> It's hard to find with the naked eye. I did a binary search to find
the
> problem. Here's a simpler version:
> 
> bash-4.2$ cat /tmp/test.awk
> BEGIN {
>       "a" 1
> }
> bash-4.2$ gawk --lint -f /tmp/test.awk
> gawk: warning: statement may have no effect
> 
> Interestingly, if the "1" is removed, there is no warning at all:
> 
> bash-4.2$ cat /tmp/test.awk
> BEGIN {
>       "a"
> }
> bash-4.2$ gawk --lint -f /tmp/test.awk
> bash-4.2$
> 
> But still we need to find the bug...

Interesting bug.  Thanks for the update.

Peter




reply via email to

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