Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Thunderbird/75.0
When I compiled bash-5.0 patchlevel 16 with gcc -Werror=char-subscripts,
the attached files didn't compile cleanly.
Please have a look at whether the patches are correct, and if so, apply
them.
Thanks,
Roland
$NetBSD: patch-bashline.c,v 1.1 2020/03/17 17:09:48 rillig Exp $
Fix array subscript with char index.
--- bashline.c.orig 2020-03-17 16:57:19.058552795 +0000
+++ bashline.c
@@ -4050,7 +4050,7 @@ set_filename_bstab (string)
memset (filename_bstab, 0, sizeof (filename_bstab));
for (s = string; s && *s; s++)
- filename_bstab[*s] = 1;
+ filename_bstab[(unsigned char) *s] = 1;
}
/* Quote a filename using double quotes, single quotes, or backslashes