[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: issue with debug trap
From: |
Kerin Millar |
Subject: |
Re: issue with debug trap |
Date: |
Sat, 16 Dec 2023 00:11:21 +0000 |
On Sat, 16 Dec 2023 00:09:10 +0000
Kerin Millar <kfm@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