[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Test exit status misinterpreted in scripts when buit without job con
From: |
Chet Ramey |
Subject: |
Re: Test exit status misinterpreted in scripts when buit without job control |
Date: |
Fri, 5 Aug 2016 15:22:43 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 8/4/16 5:04 PM, Dan Cross wrote:
> Thanks for the report. I took a quick look at this, and it's not
> disabling
> job control that does it: it's disabling both job control and nls.
> Disabling either one while leaving the other enabled doesn't produce this
> error (which only happens in the case where you run a script with the
> execute bit set without a #! line after running an executable that causes
> the shell to call waitpid()). It's a strange set of circumstances.
> I'll see what I can find.
>
>
> Thanks, Chet. FYI, I tried building for the research kernel with NLS
> enabled and am still seeing the problem.
It turns out that the set of circumstances I listed above is essential,
and order-specific. I tested in a slightly different order when I built
a version without nls and job control, and that was the sequence that
triggers the bug. It's very specific.
Anyway, I fixed it and the fix will be in the next release. If you
want to move forward, you can apply the attached workaround, which is not
the change I made in the current development version.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
exec.diff
Description: Text document