fix crash with unset arrays in arithmetic constructs ; change to avoid printing foreground job statuses when we don't want to

This commit is contained in:
Chet Ramey
2022-10-04 11:58:54 -04:00
parent e6dc31ac13
commit 43e861c2cd
10 changed files with 76 additions and 12 deletions
+2
View File
@@ -757,6 +757,8 @@ declare -A A=([$'\t']="X" ["*"]="X" [" "]="X" ["@"]="X" )
declare -A A=(["*"]="X" ["@"]="X" )
./array27.sub: line 76: declare: `A[]]=X': not a valid identifier
declare -A A=(["*"]="X" ["@"]="X" )
./array27.sub: line 81: y[]: bad array subscript
./array27.sub: line 81: y[]: bad array subscript
declare -a bug4=([0]="" [1]="5" [2]="" [3]="1" [4]="")
declare -a bug=([0]="" [1]="5" [2]="" [3]="1" [4]="")
declare -a bug2=([0]="")