fix(ralph-wiggum): use portable shebang in shell scripts - #16562
Open
mantrakp04 wants to merge 1 commit into
Open
fix(ralph-wiggum): use portable shebang in shell scripts#16562mantrakp04 wants to merge 1 commit into
mantrakp04 wants to merge 1 commit into
Conversation
Change `#!/bin/bash` to `#!/usr/bin/env bash` for portability across different Linux distributions (NixOS, WSL2, etc.) where /bin/bash may not exist. Fixes anthropics#12880 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR improves the portability of ralph-wiggum shell scripts by updating the shebang to use the env approach for finding bash. This ensures compatibility on systems where bash is not located at /bin/bash, such as NixOS and WSL2.
- Updated shebang from
#!/bin/bashto#!/usr/bin/env bashin ralph-wiggum plugin scripts - Fixes compatibility issues on NixOS, WSL2, and other Linux distributions
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| plugins/ralph-wiggum/scripts/setup-ralph-loop.sh | Updated shebang to use portable #!/usr/bin/env bash format |
| plugins/ralph-wiggum/hooks/stop-hook.sh | Updated shebang to use portable #!/usr/bin/env bash format |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3 tasks
steveyegge
approved these changes
Jan 8, 2026
steveyegge
left a comment
There was a problem hiding this comment.
LGTM. Using #\!/usr/bin/env bash is the correct portable shebang pattern - it finds bash via PATH rather than hardcoding /bin/bash which doesn't exist on NixOS and some other systems.
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#!/bin/bashto#!/usr/bin/env bashin ralph-wiggum shell scripts/bin/bashmay not existTest plan
setup-ralph-loop.sh --helpworks on WSL2 Ubuntusetup-ralph-loop.sh "Test task" --max-iterations 3creates state file correctlyFixes #12880
🤖 Generated with Claude Code