-
Notifications
You must be signed in to change notification settings - Fork 83
Example Project ./setup.sh: line 38: MISE_ARGS[@]: unbound variable #927
Copy link
Copy link
Closed
Labels
area: exampleExample apps, previews, sample projects, screenshots, or demo assets.Example apps, previews, sample projects, screenshots, or demo assets.area: toolingDeveloper tooling, package manifests, Tuist, scripts, formatting, or release tooling.Developer tooling, package manifests, Tuist, scripts, formatting, or release tooling.platform: macOSmacOS-specific behavior or support.macOS-specific behavior or support.type: bugSomething is not working correctly.Something is not working correctly.
Description
Activity
Metadata
Metadata
Assignees
Labels
area: exampleExample apps, previews, sample projects, screenshots, or demo assets.Example apps, previews, sample projects, screenshots, or demo assets.area: toolingDeveloper tooling, package manifests, Tuist, scripts, formatting, or release tooling.Developer tooling, package manifests, Tuist, scripts, formatting, or release tooling.platform: macOSmacOS-specific behavior or support.macOS-specific behavior or support.type: bugSomething is not working correctly.Something is not working correctly.
When I run setup script on macOS, I get this error:
I figured out that this error only happens in older versions of bash (mine is 3.2.57, which is the macOS default system Bash).
I tried following reproduction script:
It fails with an error on my Bash 3.2.57, but works on newer versions (e.g., Bash 5.x).
Is it a requirement to have newer bash version so I - somehow - install and manage newer versions of bash.
Or this requires
setup.shto provide backward compatibility? it just needs to be from"${MISE_ARGS[@]}"to${MISE_ARGS[@]+"${MISE_ARGS[@]}"}