Re: [PATCH v3 1/5] test: use bash specific test for feature tests

Subject: Re: [PATCH v3 1/5] test: use bash specific test for feature tests

Date: Thu, 13 Apr 2023 07:22:54 -0500

To: David Bremner

Cc: notmuch@notmuchmail.org

From: Felipe Contreras


On Sun, Apr 9, 2023 at 9:26 AM David Bremner <david@tethera.net> wrote:
>
> It is desirable to have the tests consider these variables being
> undefined as equivalent to the feature not being present, and in
> particular for the tests not to generate errors.

This can be done easily with `[ ${FOO-0} -eq 1 ]`, or as I prefer: `[
"$FOO" = 1 ]`.

-- 
Felipe Contreras
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: