Fix to better support CDPATH

This commit is contained in:
ridiculousfish
2012-05-06 14:53:19 -07:00
parent e0baab2722
commit 99b51ce6ea
4 changed files with 16 additions and 6 deletions

View File

@@ -49,9 +49,7 @@ extern wcstring stdout_buffer, stderr_buffer;
*/
static int is_path_variable( const wchar_t *env )
{
return contains( env,
L"PATH"
);
return contains(env, L"PATH", L"CDPATH" );
}
/**