View Issue Details

IDProjectCategoryView StatusLast Update
0016754CentOS-7bashpublic2019-11-20 05:06
Status newResolutionopen 
PlatformOSCentOS 7 minimalOS Version7.7.1908 x86_64
Product Version7.7-1908 
Target VersionFixed in Version 
Summary0016754: bash incorrect parsing of associative array keys
Descriptionbash 4.2.46(2)-release (x86_64-redhat-linux-gnu) incorrectly parses associative array keys with certain special characters, for example "]" (closing square bracket), "*" (asterisk), "@" (at symbol).

This applies to the minimal install. The live ISO reports the exact same version of bash--4.2.46(2)-release (x86_64-redhat-linux-gnu)--but parses the keys correctly.
Steps To ReproduceInstall the minimal install, log in, create an associative array with one of the special characters:

declare -A dict=( ["]"]="closingbracket" ) # bad array subscript

declare -A dict=( ["@"]="at" ) # invalid associative array key

declare -A dict=( ["*"]="asterisk" ) # invalid associative array key
Additional InformationWorks correctly on the exact same version of bash on the live image
TagsNo tags attached.




2019-11-20 05:06

reporter   ~0035714

Correction: the bug exists in the live version too; using TTY, the key is parsed incorrectly. Using a terminal, for example Gnome Terminal, the key is parsed correctly.

Issue History

Date Modified Username Field Change
2019-11-20 04:38 myspaghetti New Issue
2019-11-20 05:06 myspaghetti Note Added: 0035714