Skip to content

Conversation

@dancer
Copy link

@dancer dancer commented Jan 13, 2026

ran into this bug when using ralph-loop - the script crashes with "PROMPT_PARTS[*]: unbound variable" because of set -u strict mode

the fix is just adding :- to provide a default empty string

before: PROMPT="${PROMPT_PARTS[]}"
after: PROMPT="${PROMPT_PARTS[
]:-}"

tested locally and it works now

@dancer dancer closed this by deleting the head repository Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant