|
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 `$?`.
[Prev in Thread] | Current Thread | [Next in Thread] |