You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hack/hero-demo/run.sh uses Bash 4+ associative arrays (declare -A STATUS / declare -A NOTE on lines 102–103). On macOS without Homebrew Bash (5.3.x), its #!/usr/bin/env bash shebang invokes stock /bin/bash (3.2.57) even from the default zsh shell, failing immediately when recording and printing the scoreboard.
(For milestone v0.4.0.)
Reproduction
On a stock macOS machine (no Homebrew bash in PATH):
/bin/bash --version
# GNU bash, version 3.2.57(1)-release (arm64-apple-darwin25)
./hack/hero-demo/run.sh
Note: invoking zsh ./hack/hero-demo/run.sh directly also fails because line 37 relies on ${BASH_SOURCE[0]} and 0-indexed array indexing.
Suggested Fix
Keep the script Bash 3.2-compatible (matching hack/tour.sh, which avoids declare -A and runs cleanly on stock macOS /bin/bash3.2.57).
Because STEPS is already a 5-element indexed array and every call site passes "${step}", replacing declare -A STATUS / declare -A NOTE with parallel indexed arrays and a small step_index lookup fixes lines 102–107 and 436 with zero changes to any of the mark_pass / mark_stub / mark_fail call sites:
Activity