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

Re: Frozen command substitution



On Sat, Feb 11, 2023 at 10:41:07AM +0100, Dominik Vogt wrote:
> I have two long running scripts that do complex interaction with
> the web browser, say "foo" which calls the subordinate script
> "bar".  The browser crashes once in a while and is restarted
> automatically by some other script.  Sometimes when this happens,
> 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

(bar produces exactly one line of output.)

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt




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