help-gawk
[Top][All Lists]
Advanced

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

Re: inconstancy with RS = "(\r?\n){2}"


From: arnold
Subject: Re: inconstancy with RS = "(\r?\n){2}"
Date: Sun, 25 Jul 2021 06:27:10 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> wrote:

> i noticed on the terminal variant it processes after couple of \ns more
> but thats still not good enuff for tcp httpd connections

I think this fixes the issue for terminals.

Arnold
----------------------------------------
diff --git a/io.c b/io.c
index 91c94d9b..4b38f092 100644
--- a/io.c
+++ b/io.c
@@ -3759,7 +3759,7 @@ again:
          */
 
        /* succession of tests is easier to trace in GDB. */
-       if (RSre->maybe_long) {
+       if (RSre->maybe_long && (iop->flag & IOP_IS_TTY) == 0) {
                char *matchend = iop->off + reend;
 
                if (iop->dataend - matchend < RS->stlen)



reply via email to

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