On 2/8/22 12:58 PM, Greg Edwards wrote:
Bash Version: 5.1
Patch Level: !PATCHLEVEL!
Release Status: release
Description:
The following simplified reproducer demonstrates an incorrect status being
returned from the test() function when run with bash 5.1 or above. The correct
status is returned on bash versions 5.0 and below, though it doesn't appear to
run the trap.
Thanks for the report. It's an easy fix to make sure the correct status is
set before running the exit trap in this case.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/