Commit ba71d11
* refactor(test): replace eval with bash arrays in unit function
Use read -ra to parse BUILD_FLAGS and TEST_FLAGS into arrays, so empty
variables expand to zero arguments without needing eval. This avoids
potential issues with shell metacharacter expansion.
https://claude.ai/code/session_01L1fN5BiN9pbngSFbtEPRWL
* fix(test): handle empty arrays under nounset on older bash
Use ${arr[@]+"${arr[@]}"} pattern to safely expand potentially empty
arrays. Bash 3.2 (macOS default) treats empty array expansion as an
unbound variable error under set -o nounset.
https://claude.ai/code/session_01L1fN5BiN9pbngSFbtEPRWL
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9347295 commit ba71d11
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
0 commit comments