[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
- [bug-gawk] Warning message issued with no source line number, Peter J. Farley III, 2017/05/16
- Re: [bug-gawk] Warning message issued with no source line number, Andrew J. Schorr, 2017/05/16
- Re: [bug-gawk] Warning message issued with no source line number, Peter J. Farley III, 2017/05/16
- Re: [bug-gawk] Warning message issued with no source line number,
Andrew J. Schorr <=
- Re: [bug-gawk] Warning message issued with no source line number, Peter J. Farley III, 2017/05/16
- Re: [bug-gawk] Warning message issued with no source line number [PATCH], Andrew J. Schorr, 2017/05/17
- Re: [bug-gawk] Warning message issued with no source line number [PATCH], Arnold Robbins, 2017/05/19
- Re: [bug-gawk] Warning message issued with no source line number [PATCH], Andrew J. Schorr, 2017/05/19
- Re: [bug-gawk] Warning message issued with no source line number [PATCH], arnold, 2017/05/19