On 3/31/23 10:20 PM, Zev Weiss wrote:

Bash Version: 5.2
Patch Level: !PATCHLEVEL!
Release Status: release

Description:

When 'set -e' is enabled, file-content substitutions of the form $(<...) cause an immediate exit even when the subsitution is in a conditional context such as the condition of an 'if' statement or the left operand of the '||' operator.

It's always been a (fatal) redirection error, but, as you suspect, has a
different effect now that $(<file) is run without forking. I'll change it
to a non-fatal failed word expansion for this case.

--
``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/


Reply via email to