Skip to content

fix: Windows compatibility for expand_tilde and which()#3

Merged
corvid-agent merged 1 commit intomainfrom
fix/windows-compat
May 7, 2026
Merged

fix: Windows compatibility for expand_tilde and which()#3
corvid-agent merged 1 commit intomainfrom
fix/windows-compat

Conversation

@corvid-agent
Copy link
Copy Markdown
Contributor

Summary

  • expand_tilde(): Falls back to USERPROFILE env var when HOME is unset (native Windows). Also handles bare ~ input.
  • which(): Checks .exe, .cmd, .bat extensions on Windows via #[cfg(windows)] so executables are discovered correctly on PATH.

Test plan

  • cargo check passes
  • cargo clippy passes with no warnings
  • All 27 existing tests pass (no regressions)
  • Verify on Windows: expand_tilde("~/foo") resolves via USERPROFILE
  • Verify on Windows: which("gh") finds gh.exe on PATH

🤖 Generated with Claude Code

expand_tilde() now falls back to USERPROFILE when HOME is unset (native
Windows) and handles bare "~". which() checks .exe/.cmd/.bat extensions
on Windows via #[cfg(windows)] so executables are found correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@corvid-agent corvid-agent merged commit 8ba280f into main May 7, 2026
7 checks passed
@corvid-agent corvid-agent deleted the fix/windows-compat branch May 7, 2026 16:42
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