Re: Bash 5.3 ARRAY_EXPORT build fix

Marc Aurèle La France <[email protected]>
Newsgroups gmane.comp.shells.bash.bugs
Message-ID <[email protected]>
On Mon, 2026-Jan-05, Chet Ramey wrote:

> On 1/3/26 10:09 AM, Marc Aurèle La France wrote:
>> Just an oversight when extract_array_assignment_list()'s second argument
>> was changed from 'int *' to 'size_t *'.

> Thanks for the report. I think a better fix is to change the variables to
> size_t.

Here you go.

Marc.

diff -NRapruz -X /etc/diff.excludes bash-5.3/variables.c devel-5.3/variables.c
--- bash-5.3/variables.c	2025-06-25 13:48:04.000000000 -0600
+++ devel-5.3/variables.c	2026-01-05 12:48:27.514851920 -0700
@@ -368,7 +368,8 @@ void
 initialize_shell_variables (char **env, int privmode)
 {
   char *name, *string, *temp_string;
-  int c, char_index, string_index, string_length, ro;
+  int c, char_index, string_index, ro;
+  size_t string_length;
   SHELL_VAR *temp_var;

   create_variable_tables ();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.