[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Special parameter ?
From: |
Chet Ramey |
Subject: |
Re: Special parameter ? |
Date: |
Fri, 21 Sep 2018 11:46:48 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 9/21/18 11:17 AM, Eduardo A. Bustamante López wrote:
> On Fri, Sep 21, 2018 at 04:17:11PM +0200, Enrique Soriano wrote:
>>> You're seeing the status from the creation of the background job (which is
>>> always 0), not from its completion.
>>
>> Ah, I see.
>>
>> Anyway, the behavior is not coherent with the manual page: in this
>> case, $? has the status from the creation of the background job,
>> that's not "the status of the most recently executed foreground
>> pipeline".
>
> The thing that creates the background job IS a foreground pipeline. It's a
> foreground pipeline that creates a background
> job, if that makes sense.
You're right, but it might be less confusing if I removed the "foreground"
from the description.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/