Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expect same environment variables with different case on Windows #138

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

alirezanet
Copy link
Contributor

@alirezanet alirezanet commented Nov 14, 2023

Previously, the code differentiated between Windows and other operating systems by using StringComparer.OrdinalIgnoreCase for Windows and StringComparer.Ordinal for others. This led to conflicts on Windows when environment variables differed only by case (e.g., HOME vs home).

The change simplifies the approach by using StringComparer.Ordinal for all platforms, ensuring consistent and case-sensitive handling of environment variables.

@Tyrrrz Tyrrrz changed the title Bugfix - Unhandled exception with duplicate environment variables on windows Expect same environment variables with different case on Windows Nov 14, 2023
@Tyrrrz Tyrrrz added the bug Something isn't working label Nov 14, 2023
@Tyrrrz Tyrrrz merged commit d330fbb into Tyrrrz:master Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants