bug-bash
[Top][All Lists]
Advanced

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

Re: wrong variable name in error message about unbound variable?


From: alex xmb sw ratchev
Subject: Re: wrong variable name in error message about unbound variable?
Date: Fri, 20 Oct 2023 00:05:38 +0200

On Thu, Oct 19, 2023, 16:58 Chet Ramey <chet.ramey@case.edu> wrote:

> On 10/17/23 3:32 PM, Grisha Levit wrote:
>
> > The reason is that if there was no variable found prior to expanding
> > the subscript, bash does not check to see if one was created during
> > that process.
>
> Thanks, I'll consider it. Behavior varies across shells in this area.
>

to me , its a valid err of non exist value
another normal is to || true with like = or :=
ah i suggest an shopt , cause imo both approaches are valid but different

greets

Chet
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
>
>
>


reply via email to

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