[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can the exit status of the code block in @(...) be obtained from out
From: |
Paul Smith |
Subject: |
Re: Can the exit status of the code block in @(...) be obtained from outside the @() structure? |
Date: |
Tue, 18 Jan 2022 23:49:34 -0500 |
User-agent: |
Evolution 3.36.5-0ubuntu1 |
On Tue, 2022-01-18 at 16:09 -0800, Jon Forrest wrote:
> On 1/18/2022 1:03 PM, Paul Smith wrote:
> > You can achieve this if you want: that's what the .ONESHELL feature
> > does.
>
> OK. But what about thinking bigger. What would the positives and
> negatives be if make were to generate a big shell script so that all
> the work were done in one shell? Such a shell script could handle
> parallel execution by proper use of the 'wait' command.
I can't think of any positives to this idea, and many negatives.
The most glaring negative would be that no makefiles existing today,
other than the most trivial, would work if make started using this
method.
Re: Can the exit status of the code block in @(...) be obtained from outside the @() structure?, Hongyi Zhao, 2022/01/20