bug-bash
[Top][All Lists]
Advanced

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

Re: integer variable that unsets itself causes segfault


From: Zachary Santer
Subject: Re: integer variable that unsets itself causes segfault
Date: Mon, 11 Aug 2025 12:00:28 -0400

On Mon, Aug 11, 2025 at 11:19 AM Chet Ramey <chet.ramey@case.edu> wrote:
>
> Since you have -i, the a[x] expands to `0', which is an invalid name for
> a nameref, resulting in an assignment error. I can add an error message
> for this case, since the original value (a[x]) is valid, something like
>
> declare: a[x]: expands to invalid variable name for name reference

declare: arithmetic evaluation will never generate a valid variable
name for name reference
or
declare: integer attribute not valid for name reference
might be a little easier to comprehend.



reply via email to

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