Tyrrrz/CliFx

Application crashes if there are two environment variables with same name, differing only in case

Tyrrrz opened this issue · 1 comments

Should be an easy fix. The offending lines are here:

var environmentVariables = Environment.GetEnvironmentVariables()
.Cast<DictionaryEntry>()
.ToDictionary(e => (string) e.Key, e => (string) e.Value, StringComparer.OrdinalIgnoreCase);