Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Frozen command substitution
- X-seq: zsh-users 28914
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Frozen command substitution
- Date: Sat, 11 Feb 2023 09:36:01 -0800
- Archived-at: <https://zsh.org/users/28914>
- In-reply-to: <Y+fKQcgcFKsBFHLY@localhost>
- List-id: <zsh-users.zsh.org>
- References: <Y+dioiiAoWXaSGqw@localhost> <Y+fKQcgcFKsBFHLY@localhost>
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