Re: Unexpected behavior from combination of errexit and execfail
From:
Chet Ramey
Subject:
Re: Unexpected behavior from combination of errexit and execfail
Date:
Fri, 23 Oct 2026 11:42:47 -0400
User-agent:
Mozilla Thunderbird
On 10/22/26 8:50 PM, Duncan Roe wrote:
Hi Chet, did you fix this?
Yes. From the change log:
9/25
----
error.c
- file_error: most callers do not anticipate this will exit the shell
if `errexit' is enabled, which it does because it calls report_error.
Change to call internal_error instead and audit callers, especially
the `exec' builtin, since the `execfail' shopt is supposed to
inhibit this.
Report from Zev Weiss <zev@bewilderbeest.net>
--
``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/