Commit 9f60090
committed
fix: protect ${a[@]+"${a[@]}"} from IFS in Bash 5.2
In Bash 5.2, when IFS is an empty string, ${a[@]+"${a[@]}"} expands to
a single word containing all the elements of the array `a` being
joined. We need to ensure IFS being a normal value.1 parent 7ba4b4a commit 9f60090
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
| 584 | + | |
584 | 585 | | |
585 | 586 | | |
586 | 587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments