Re: `read -d x` hangs when run under gnu parallel, even if input is redirected

Bart Schaefer <[email protected]> Mon, 15 Dec 2025 12:41:38 -0800
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <CAH+w=7ZGk9DfOp+BDKo147kO0XLOSyRnSGwYdYR2=pksXG7X5A@mail.gmail.com>
On Sat, Dec 13, 2025 at 5:15 PM Russell Harmon <[email protected]> wrote:
>
> I also found that my workaround of using --tty is inconsistent, but a
> better workaround is to ignore SIGTTOU.

Hang on, TTOU means something is trying to write to the TTY.  Have you tried

read -u 0 -d x </dev/random >&/dev/null

?  Does anything change if you add the -s option to read?