[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: |
Thu, 20 Jan 2022 00:38:38 -0500 |
User-agent: |
Evolution 3.36.5-0ubuntu1 |
On Thu, 2022-01-20 at 08:59 +0800, Hongyi Zhao wrote:
> Maybe I didn't express my question clearly. I actually meant to say
> if the following one are equivalent to obtain the exit code:
>
> $($?) and $$?
It's essentially impossible to talk about variables by themselves: the
only way it makes sense to talk about them is by showing how they are
used. If you show me a complete example makefile that uses those two
different forms, I can tell you what it will do and how make will treat
them.
Of course, if you do that you can just run make yourself and see what
happens without needing to ask :).
However, the short answer is no, they are not even close to being
equivalent.
- Re: Can the exit status of the code block in @(...) be obtained from outside the @() structure?, (continued)
Re: Can the exit status of the code block in @(...) be obtained from outside the @() structure?, Hongyi Zhao, 2022/01/18
Re: Can the exit status of the code block in @(...) be obtained from outside the @() structure?, Hongyi Zhao, 2022/01/19
Re: Can the exit status of the code block in @(...) be obtained from outside the @() structure?, Hongyi Zhao, 2022/01/20
Re: Can the exit status of the code block in @(...) be obtained from outside the @() structure?, Paul Smith, 2022/01/21
Re: Can the exit status of the code block in @(...) be obtained from outside the @() structure?, Hongyi Zhao, 2022/01/21
Re: Can the exit status of the code block in @(...) be obtained from outside the @() structure?, Hongyi Zhao, 2022/01/21
Re: Can the exit status of the code block in @(...) be obtained from outside the @() structure?, Hongyi Zhao, 2022/01/21
Re: Can the exit status of the code block in @(...) be obtained from outside the @() structure?, Hongyi Zhao, 2022/01/21