[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Documentation Error
From: |
G. Branden Robinson |
Subject: |
Re: Documentation Error |
Date: |
Wed, 8 Jun 2022 15:42:09 -0500 |
At 2022-06-08T12:05:06-0500, mcmuffin6o wrote:
> In section 3.5.3 Shell Parameter Expansion:
>
> In the sixth paragraph it correctly states that "Bash tests for a
> parameter that is unset *or* null" when you use the colon. It later
> attempts to restate this but fails by saying "if the colon is
> included, the operator tests for both parameter's existence *and* that
> its value is not null"
This is an application of DeMorgan's Law to English prose. I will
translate the clauses into pseudo-C.
"Bash tests for a parameter that is unset *or* null"
if ((!set) || (!has_content))
"the operator tests for both parameter's existence *and* that its value
is not null"
if (set && has_content)
Regards,
Branden
signature.asc
Description: PGP signature