Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14624 > unrolled thread

Re: Special parameter ?

Started byChet Ramey <chet.ramey@case.edu>
First post2018-09-21 11:46 -0400
Last post2018-09-21 11:46 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Special parameter ? Chet Ramey <chet.ramey@case.edu> - 2018-09-21 11:46 -0400

#14624 — Re: Special parameter ?

FromChet Ramey <chet.ramey@case.edu>
Date2018-09-21 11:46 -0400
SubjectRe: Special parameter ?
Message-ID<mailman.1097.1537544817.1284.bug-bash@gnu.org>
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/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web