bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The exit code for the foreground command unexpectedly became 0.


From: 王伟
Subject: Re: The exit code for the foreground command unexpectedly became 0.
Date: Wed, 4 Mar 2026 10:11:14 +0800

  Sorry, I forgot to CC the mailing list in my previous reply. Re-sending
this to the list for the record.

  We later tried writing minimal reproducible code, but we couldn't
reproduce the problem. I'm wondering if this is an extreme edge case? Did
you change the job control system and the external command exit code
capture mechanism in versions 4.4.23 to 5.0.0? If these improvements
prevented the problem from recurring, then we decided to give up on further
troubleshooting. Do you think our approach is reasonable?

Chet Ramey <chet.ramey@case.edu> 于2026年3月4日周三 00:26写道:

> On 3/1/26 8:56 PM, 王伟 wrote:
> > I've encountered a strange problem. On versions of bash4.4.18 and 4.4.23.
> > Executing code similar to the following in an embedded environment may
> > cause problems.
>
> It would be great if you could provide a reproducible example, so we can
> check whether or not there was a fix between bash-4.4 and bash-5.0.
>
> --
> ``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/
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]