Tyrrrz / CliFx

Class-first framework for building command-line interfaces
MIT License
1.5k stars 61 forks source link

Expect same environment variables with different case on Windows #138

Closed alirezanet closed 12 months ago

alirezanet commented 12 months ago

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.