BUG: Only do ~ test if HOME variable is defined.
This commit is contained in:
parent
3a7920d461
commit
5e02b5ec96
|
@ -54,9 +54,11 @@ int main(/*int argc, char* argv*/)
|
||||||
{
|
{
|
||||||
CheckConvertToUnixSlashes(toUnixPaths[cc][0], toUnixPaths[cc][1]);
|
CheckConvertToUnixSlashes(toUnixPaths[cc][0], toUnixPaths[cc][1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Special check for ~
|
||||||
|
kwsys_stl::string output;
|
||||||
|
if(kwsys::SystemTools::GetEnv("HOME", output))
|
||||||
{
|
{
|
||||||
// Special check for ~
|
|
||||||
kwsys_stl::string output = kwsys::SystemTools::GetEnv("HOME");
|
|
||||||
output += "/foo bar/lala";
|
output += "/foo bar/lala";
|
||||||
CheckConvertToUnixSlashes("~/foo bar/lala", output);
|
CheckConvertToUnixSlashes("~/foo bar/lala", output);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue