Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Frozen command substitution
- X-seq: zsh-users 28918
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Frozen command substitution
- Date: Sat, 11 Feb 2023 21:28:43 +0100
- Archived-at: <https://zsh.org/users/28918>
- In-reply-to: <CAH+w=7aSWR5iVZFv0vARVy6Ssk-cHMo5+W5emMXaac+Ot_k9MQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- References: <Y+dioiiAoWXaSGqw@localhost> <Y+fKQcgcFKsBFHLY@localhost> <CAH+w=7aSWR5iVZFv0vARVy6Ssk-cHMo5+W5emMXaac+Ot_k9MQ@mail.gmail.com>
- Reply-to: zsh-users@xxxxxxx
- Ui-outboundreport: notjunk:1;M01:P0:Jb19mhf9DZ4=;rBiDJwxROJwt70FkgD6rJ8eLnEd O1YAyCdc5UqUKyMRVQNZ2PuXdLopaG0ibKkTjbdmomJe4Z/0fUvno7ugXeosI6QYopmScVhDZ rGvp+UANQb9hqi5ffOF+9fSUjqGn3TSq36K6X9HNZTlNTtollaCljgF/maZbiXAkCNl8SYtIZ JG9FMSRsRT2yYpQQnpTSS+7MpZuopKr7MV0SmeAXW+tMd6XaT5wnwmVMNP/Gj6GlKJOhZJ1Ev /2YL/S6qwUTLWCdeNQ1PsYD2H6LfrXGrRXr/XMjvAAJ6UlWtvxCyQ220s1jS29a0grbNjUDEM 8HPVJ0gmVj1twtadYKBJ0sFlwgDHG/+8/mMJs97Q+C4gidonjUHLj2Z2ixPUKvqPLovA9kVHz Ahqmupei/tXw4x+A7WsA3CiMb2Cvqd2iYmxaLwBrsqpQqackgnfu0Bg9Y9yG9NPf8GZOju/+6 G9tGYVZryEAuJWssJ90u4tnP6UDE0KvvtEqPR8ZzB8gbxNsLbZuntHEANFq3hhMSjoE8q8/sN 6iSH+jKW0swOUA0RmEWooaa68HTqio/OOBErM3AhitIehYyK3k1IXGBhu3MEYS8AYTTc/G8dT mrazrerocpQYfHK7KAbC7eVYc+wHrDag+yo2WMAMZtWcjOd3Xk3qajjOp1T3hJCfLBP2TOh0d 5DKeJVe1MI0nHKcQW+UzVGt0DHs4iobR3YNGwZRpNAwX+3XGddt+uBBonLqc1nFMdNjoKcwCE PDRZPU9zFoxvNRfIcSvBcp5eJPpBEHLCS4zrn9CsOO7x5QxcwqH7GsVbJiFSARLI6Y8ugUwaX eC+KbUwS/7HURspdo06hyZ8e4FQNZYq18Yn1m6eUWe+TIkJg4ryjIutxhbI1mRMo5hrGkUNjf ry+J2rpNrrFHdoV86beSmpyd+1g1tLLZqWncEHb27wkhoZaPAtOAr3lgTiR/uyGNzaXFwsUaE bUHdMQ==
On Sat, Feb 11, 2023 at 09:36:01AM -0800, Bart Schaefer wrote:
> 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).
Hm, either script may restart the browser if the browser hangs.
After killing it I use this to restart it:
start-browser () {
( set -m; "$BROWSER" <options> <url> &! )
}
Does this have some side effect that I'm not aware of? The idea
was to decouple the browser from the script so that it won't be
killed when the script ends.
(This is all a bit more complicated because the browser runs
inside a sandbox (firjail) and killing the browser actually means
terminating the sandbox. But I think that's not part of the
problem.)
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author