Re: Examples of concurrent coproc usage?

2024-06-10 Thread Zachary Santer
On Sat, Jun 8, 2024 at 9:38 PM Martin D Kealey wrote: > > > On Wed, 10 Apr 2024 at 03:58, Carl Edquist wrote: >> >> Note the coproc shell only does this with pipes; it leaves other user >> managed fds like files or directories alone. >> >> I have no idea why that's the case, and i wonder whether

Re: [PATCH] cond expr: cleanup on errors

2024-06-10 Thread Chet Ramey
On 6/4/24 3:00 PM, Grisha Levit wrote: Thanks for the report. These are interactive errors only, since a syntax error in a compound command causes the shell to exit. The fix for this you applied in [1] does seem cleaner. I think it needs also the following for something like `[[ ( -n x x ]]`:

Re: Examples of concurrent coproc usage?

2024-06-10 Thread Robert Elz
Date:Mon, 10 Jun 2024 07:41:27 -0400 From:Zachary Santer Message-ID: | I assume the coproc fd behavior of | being closed after most forks is not handled through a system fd flag, | though if there is a system fd flag that would cause an fd to | automatically