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

Re: Frozen command substitution



On Sat, Feb 11, 2023 at 9:03 AM Dominik Vogt <dominik.vogt@xxxxxx> wrote:
>
> On Sat, Feb 11, 2023 at 10:41:07AM +0100, Dominik Vogt wrote:
> > foo freezes in a call of bar and won't wake up anymore when bar
> > terminates:
>
> >               R="$(bar some arguments)"  <------- hangs in this line
>
> Apparingly this does not happen if the line is rewritten to
>
> >               bar some arguments | read R

Look for a file or pipe that's been opened in foo to which the
subshell for bar might still have a descriptor (obviously other than
the fd to return bar's output).




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