fix(completions): undefined variable leading to bash completion errors - #26743
fix(completions): undefined variable leading to bash completion errors#26743carschandler wants to merge 1 commit into
Conversation
Fixes oven-sh#24847 Not sure what the original intent of this undefined script was but I'd rather have a working version than try to fix it
WalkthroughRemoved an alternative condition in the bash completion script's Changes
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
completions/bun.bash (1)
1-1: 🧹 Nitpick | 🔵 TrivialPre-existing: Shebang is malformed.
The shebang line is missing
!and should be#!/usr/bin/env bash. While completion scripts are typically sourced rather than executed directly (so this may not cause immediate issues), it's still incorrect.Proposed fix
-#/usr/bin/env bash +#!/usr/bin/env bash
Code ReviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
|
Keeping this one as the fix for #24847 (triaging the open completion PRs). Notes for whoever merges:
|
What does this PR do?
Fixes #24847
Not sure what the original intent of this undefined variable was but I'd rather have a working version than try to fully fix that functionality
How did you verify your code works?
Edited the currently installed completions script from my bun install with identical changes