bug-gawk
[Top][All Lists]
Advanced

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

Re: gawk line continuation


From: dan nielsen
Subject: Re: gawk line continuation
Date: Sun, 28 Jun 2020 01:56:13 +0000 (UTC)

 Arnold,
Apologies for not sending the files as attachments. I keep on forgetting to do 
that along with neglecting to mention that I am on MS-Windows 10. I will 
probably continue to forget to do this as it is so infrequent that I have an 
issue. You can take all the credit for that. Gawk is rock-solid, stable, well 
documented, and lightening fast. And, the support is extraordinary!  
Why haven't I completely upgraded to gawk 4?I still have a lot of awk scripts 
that are running 3.1.4 only because "if ain't broke, don't fix it". Anytime I 
need to change something I update my documentation and batch files to use gawk 
4 and this is where I ran into the error reported to you.
Why haven't I at least tried gawk 5?I get a pre-compiled Windows executable 
from https://www.klabaster.com/freeware.htm and the latest version Olaf 
Schoenfeldt has provided is 4.1.4. (Yes, I know I am still on 4.1.1.) If you 
know some reliable site that has a Windows 5.x binary PLEASE let me know and 
I'll start using it immediately. 
Getting back to Dan's issue.I checked my awk file and all the lines are 
variable length delimited by the usual CR/LF. I guess yahoo mail or google 
chrome mangled things up along the way to you.  Three files are attached:- .awk 
containing the source- .txt containing the script (it should be .bat but some 
mail clients delete them)- .out is a screen scape of the commands and the 
output from gawk3 and gawk4BTW the awk file also works fine with BWK's awk95, 
mawk, and Thompson's Automation awkw.
Any light you could shed on this would be appreciatedThank you,.Dan Nielsen



    On Friday, June 26, 2020, 07:19:58 AM EDT, <arnold@skeeve.com> wrote:  
 
 Hi Dan.

dan nielsen <catskill549@yahoo.com> wrote:

> What happened between gawk 3.1.4 and 4.1.1 regarding line continuation?
> Dan Nielsen

I have omitted quoting your example because it's illegible in plain text.
In the future, please include your programs and typescripts as attachments
if you're going to use a mailer than mangles things so badly...

I saved the HTML and copy/pasted your program from it into a file. Said
file had lines that were all exactly 40 characters long, except for the
last one.  The trailing characters were all spaces.

Given that that was the case, the error message received makes perfect
sense.  I note that on Linux even gawk 3.1.4 gave an error message.
I don't know what system you're using; I'm guessing VMS.

I also note that gawk 3.1.4 is from 2003 and gawk 4.1.1 from 2014; you
need to move up to a current version. Gawk 5.1.0 is current and is fully
supported on VMS.

Hope this helps,

Arnold
  

Attachment: ZERROR_CONTINUATION.AWK
Description: Binary data

Attachment: ZERROR_CONTINUATION.OUT
Description: Binary data

Attachment: ZERROR_CONTINUATION.TXT
Description: Text document


reply via email to

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