Is there a way to expand unix-style environment variables ($PATH) in C#? The built-in function Environment.ExpandEnvironmentVariables only expands Windows-style environment variables (%PATH%) and a Google does not give me any alternatives for unix systems.
Maybe someone has written such a thing?
I'm looking for something that could handle the following types of variables, so they can be defined in config files etc., the way you would expect on a unix system.
$PATH${PATH}~/(should resolve to the user's home folder)