On 12/2/22 8:26 PM, Martin D Kealey wrote:

If anything is weird, it's that simple (bare) assignments set $? to 0
UNLESS there's a command substitution providing a status.

Why not, if the assignment is performed successfully? POSIX says all errors
in that context are fatal for non-interactive shells, but interactive
shells continue.


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