Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: one time in 20 error



On Mon, Nov 28, 2022 at 11:16 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> On 2022-11-28 12:46, Roman Perepelitsa wrote:
> > You can try this:
> >      () {
> >        zmodload zsh/system
> >        local REPLY
> >        while sysread -t 0.1; do done
> >      }
> >
> How do I use that?

You invoke it right after the script that has the particular bug
you've described above.

> > The teacher wasn't convinced by this "solution" and neither should you.
>
> Not my style.

Then don't use it. It's not a fix for the bug, it just masks it.

Roman.




Messages sorted by: Reverse Date, Date, Thread, Author