[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Continuation Character not recognized in GAWK 4.1
From: |
Lorenz |
Subject: |
Re: [bug-gawk] Continuation Character not recognized in GAWK 4.1 |
Date: |
Tue, 24 Feb 2015 06:32:41 +0000 |
Rush, Scott (CS COE) wrote:
>[...]
>The situation I have with the 64-bit version is that I get a parsing
>error when I attempt to use the "\" continuation character in my
>programs. For example, having the following program lines produces the
>following error:
>
>{
>printf("Hello \
>World!\n")
>}
>
>awk: test:2: printf("Hello \
>awk: test:2: ^ unterminated string
>awk: test:2: printf("Hello \
>awk: test:2: ^ syntax error
I not sure if a line continuation is even allowed inside a string ...
but in case of strings it is no neccessary anyway, because you can use
print("Hello "
"World!\n")
instead.
--
Lorenz