fix for namerefs referencing an unset array index with nounset enabled; addition to buildconf.h.in for C23 compilers

This commit is contained in:
Chet Ramey
2025-05-30 10:11:03 -04:00
parent 870ad4c92b
commit dbe4256d5e
24 changed files with 2285 additions and 3263 deletions
+13
View File
@@ -1,3 +1,16 @@
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
declare -ai a
a[0]=4
declare -n b='a[0]'