help-bash
[Top][All Lists]
Advanced

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

Re: Irregularities when using -v, -z, -n


From: Leonid Isaev (ifax)
Subject: Re: Irregularities when using -v, -z, -n
Date: Thu, 29 Jul 2021 14:30:23 +0000
User-agent: Mutt/1.13.4 (2020-02-15)

On Thu, Jul 29, 2021 at 09:42:51AM -0400, Greg Wooledge wrote:
> Inflating the bash(1) man page even further with thousands of examples
> is not likely to be accepted.

Fair point.

I had online documentation at gnu.org in mind, actually. But yes, I see how
this can be a problem if it is generated from the same source as the manpage.

> Unraveling things a bit, most of the OP's troubles would go away if
> they would simply initialize their variables with default values up
> front, instead of trying to determine retroactively whether they
> already assigned a value to the variable during option processing.

Agreed. The only check to be made in practice, is whether a (already defined)
variable contains a zero-length string or not...

-- 
Leonid Isaev



reply via email to

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