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: Alex fxmbsw7 Ratchev
Subject: Re: inconstancy with RS = "(\r?\n){2}"
Date: Sun, 25 Jul 2021 14:56:23 +0200

to reproduce
tcpserver by djb

tcpserver 0 1024 gawk -v RS='\r?\n\r?\n' 1 &
nc 0 1024


On Sun, Jul 25, 2021 at 2:54 PM Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> wrote:
>
> so this patch, and supposently further ones, whats the git gawk get
> command, pref. dev tree
>
> On Sun, Jul 25, 2021 at 2:53 PM <arnold@skeeve.com> wrote:
> >
> > > i can however send you the tree i have for reproduction
> >
> > No, thank you.  Sorry.
> >
> > Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> wrote:
> >
> > > well i do in bash and gawk cause its the only i know
> > > i know of no debugging or much .c code sorry
> > >
> > > i can however send you the tree i have for reproduction
> > >
> > > the case is a tcp connection spawns bash then somewhen spawns gawk sub
> > > parser, and the connection, like terminal, most times doesnt get
> > > closed by the http client, logically
> > > so it never processed ( this version with this code )
> > >
> > > its the same as with tty, whatever the fix is, just the tcpserver ( by
> > > djb utils ) doesnt do tty i think
> > >
> > > On Sun, Jul 25, 2021 at 2:48 PM <arnold@skeeve.com> wrote:
> > > >
> > > > Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com> wrote:
> > > >
> > > > > well its not 2 but in this no \r data case it was used to
> > > > > if one would stack chars and on each new check for RS it would work,
> > > > > .. so its some bug
> > > >
> > > > Feel free to point a debugger at it, figure it out and submit
> > > > a patch.
> > > >
> > > > I have no way to reproduce the environment you're in or the problem
> > > > you're trying to solve, and it's quite possible that using shell
> > > > and awk for an HTTP server isn't the right approach in any case.
> > > >
> > > > Arnold



reply via email to

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