On Sat, 16 Dec 2023 00:09:10 +0000
Kerin Millar <k...@plushkava.net> wrote:

> At this point, the value of $? is 1, prior to executing true - a simple 
> command. Just as for any other simple command, the trap code shall be 
> executed beforehand. Consequently, your test observes that $? is 
> arithmetically false and acts accordingly. Keep in mind that this is the only 
> part of your script in which an "else" clause is actually reached.

Of course, I meant to write "arithmetically true" there.

-- 
Kerin Millar

Reply via email to