help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using $? in a numeric if condition


From: hancooper
Subject: Re: Using $? in a numeric if condition
Date: Wed, 04 Aug 2021 06:42:03 +0000

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, August 4, 2021 6:16 AM, hancooper via <help-bash@gnu.org> wrote:

> I cannot understand why the following is not working
>
> if (( $? >= 1 )); then

Have figured out that an echo before the statement was getting me a value of 
`0` for `$?`.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]