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