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: Andrew J. Schorr
Subject: Re: [bug-gawk] Warning message issued with no source line number
Date: Tue, 16 May 2017 20:52:02 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

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...

Regards,
Andy



reply via email to

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