[Top][All Lists]

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

Re: RS='.^' apparently ignores the RS setting

From: arnold
Subject: Re: RS='.^' apparently ignores the RS setting
Date: Thu, 15 Jul 2021 12:51:34 -0600
User-agent: Heirloom mailx 12.5 7/5/10

arnold@skeeve.com wrote:

> The matched character for the record separator is the newline before
> the subsequent begininng of the line that follows it.
> This is likely a bug. I need to think about how to deal with it.
> It's a truly weird corner case.

Mawk indeed treats ".^" as an invalid regexp, reading in the whole
file as a single record.

I think this is a bug in the dfa and regexp libraries that gawk uses,
and have sent a report to the gnulib list asking them to explore it
further, or to explain to me what I'm doing wrong.



reply via email to

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