bug-gnu-utils
[Top][All Lists]
Advanced

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

Is this a bug?


From: Dominik Smogór
Subject: Is this a bug?
Date: Tue, 27 Jul 2004 17:50:24 +0200
User-agent: KMail/1.6.2

Hello everyone.
the following script:

BEGIN {RS="kk"}
{print}

eats up the last character from any file that doesn't end with \n and pastes 
endline character instead.

I'm not awk expert and I don't know if this is expected behaviour (at least 
not for me :) ).

I attached a test case.

Regards,
DS

ps. 
1. I ran gawk on an updated debian unstable using gawk 3.1.3, without any 
additional options.
2. In case it isn't a common practice on this list please CC me in the 
response.

Attachment: eat.awk
Description: Text document

Attachment: foo
Description: Text document


reply via email to

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