Commit e1dae22
committed
fix(tests): fix bash 3.2 compatibility issues in tests
- Replace ${lines[-1]} with ${lines[${#lines[@]}-1]} for bash 3.2
(negative array subscripts not supported in bash 3.2)
- Skip set -u test on bash 3.2 due to known bash limitation where
empty arrays with ${array[@]} are treated as unbound variables
(exits with code 127). This is a bash quirk, not a script bug.1 parent 5fbccbc commit e1dae22
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
329 | 338 | | |
330 | 339 | | |
331 | 340 | | |
| |||
0 commit comments