Skip to content

fix(shell): case-insensitive pwsh env var lookup (fixes #29290)#29371

Open
levgiorg wants to merge 1 commit into
anomalyco:devfrom
levgiorg:fix/issue-29290-pwsh-env-case
Open

fix(shell): case-insensitive pwsh env var lookup (fixes #29290)#29371
levgiorg wants to merge 1 commit into
anomalyco:devfrom
levgiorg:fix/issue-29290-pwsh-env-case

Conversation

@levgiorg
Copy link
Copy Markdown

Issue for this PR

Closes #29290

Type of change

  • Bug fix

What does this PR do?

Fix pwsh $env: expansion to use case-insensitive env var lookup on all platforms, not just Windows.

How did you verify your code works?

  • TypeScript typecheck passes
  • Existing tests pass

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@levgiorg levgiorg requested a review from adamdotdevin as a code owner May 26, 2026 09:36
@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

⚠️ POTENTIAL DUPLICATE FOUND:

Why they're likely related: Both PRs address the same issue (#29290) regarding case-insensitive pwsh environment variable lookup. PR #29287 appears to be an earlier or related attempt to fix the same problem. You should verify whether #29287 was already merged, closed, or if this PR (#29371) supersedes it.

Previously envValue() returned process.env[key] directly on non-Windows
platforms, failing for mixed-case $env: references in pwsh. Now performs
case-insensitive lookup on all platforms.

Fixes anomalyco#29290
@levgiorg levgiorg force-pushed the fix/issue-29290-pwsh-env-case branch from b611196 to eb37f90 Compare May 26, 2026 10:33
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.

pwsh env var expansion fails with mixed-case env vars on non-Windows

1 participant