[BUG] ralph-loop plugin
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Bug Description
Running /ralph-loop without arguments causes a bash error:
PROMPT_PARTS[*]: unbound variable
## Root Cause
In scripts/setup-ralph-loop.sh line 113, the script uses set -u but references an empty array:
```bash
PROMPT="${PROMPT_PARTS[*]}"
What Should Happen?
Fix
Change line 113 to:
PROMPT="${PROMPT_PARTS[*]:-}"
This provides a default empty string when the array is empty.
Error Messages/Logs
/ralph-loop/96276205880a/scripts/setup-ralph-loop.sh" $ARGUMENTS
/ralph-loop/96276205880a/scripts/setup-ralph-loop.sh: line 113:PROMPT_PARTS[*]: unbound variable
Steps to Reproduce
- 安装 Claude Code CLI (版本 2.1.9)
- 启用 ralph-loop 插件
- 运行命令:
/ralph-loop
- (不带任何参数)
预期行为 (Expected Behavior)
显示错误提示:"No prompt provided",并给出使用示例。
实际行为 (Actual Behavior)
Bash 脚本报错:
/Users/xxx/.claude/plugins/cache/claude-plugins-official/ralph-loop/96276205880a/scripts/setup-ralph-loop.sh: line 113: PROMPT_PARTS[*]: unbound variable
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.9 (Claude Code)
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗