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
+3
View File
@@ -76,3 +76,6 @@ for k in ']' '*' '@'; do
declare "A[$k]=X"
done
declare -p A
# empty arrays in arith contexts
(( y[$none] ))