[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Irregularities when using -v, -z, -n
From: |
eduardo-chibas |
Subject: |
Irregularities when using -v, -z, -n |
Date: |
Thu, 29 Jul 2021 16:49:29 +0200 |
> Sent: Friday, July 30, 2021 at 2:30 AM
> From: "Leonid Isaev (ifax)" <leonid.isaev@ifax.com>
> To: help-bash@gnu.org
> Subject: Re: Irregularities when using -v, -z, -n
>
> 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...
My problem mostly emanate from dynamic scoping.
> --
> Leonid Isaev
>
>
- Irregularities when using -v, -z, -n, (continued)
- Irregularities when using -v, -z, -n, eduardo-chibas, 2021/07/29
- Irregularities when using -v, -z, -n, eduardo-chibas, 2021/07/29
- Re: Irregularities when using -v, -z, -n, Leonid Isaev (ifax), 2021/07/29
- Re: Irregularities when using -v, -z, -n, Greg Wooledge, 2021/07/29
- Irregularities when using -v, -z, -n, eduardo-chibas, 2021/07/29
- Re: Irregularities when using -v, -z, -n, Lawrence Velázquez, 2021/07/29
- Irregularities when using -v, -z, -n, eduardo-chibas, 2021/07/29
- Irregularities when using -v, -z, -n, eduardo-chibas, 2021/07/29
- Re: Irregularities when using -v, -z, -n, Leonid Isaev (ifax), 2021/07/29
- Irregularities when using -v, -z, -n, eduardo-chibas, 2021/07/29
- Irregularities when using -v, -z, -n,
eduardo-chibas <=