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

Bart Schaefer <[email protected]> Wed, 3 Dec 2025 09:49:21 -0800
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <CAH+w=7aPUfNo5i6WqGmb-rqPsLhHtYmHgHNPstmsuXXT137p8A@mail.gmail.com>
On Tue, Dec 2, 2025 at 6:16 AM Russell Harmon <[email protected]> wrote:
>
> $ parallel -qu -- zsh -fc 'read -d x </dev/random' ::: a
>
> However the above hangs forever.

Add -u 0 to force reading stdin without considering it to be a terminal?