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.
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
vshome
).The change simplifies the approach by using
StringComparer.Ordinal
for all platforms, ensuring consistent and case-sensitive handling of environment variables.