Fix for bogus check for IFS environment variable

This commit is contained in:
ridiculousfish 2012-01-16 09:43:34 -08:00
parent 55091d9deb
commit c647bed9d5

View file

@ -1744,8 +1744,7 @@ int exec_subshell( const wchar_t *cmd,
char sep=0; char sep=0;
CHECK( cmd, -1 ); CHECK( cmd, -1 );
// ifs = env_get(L"IFS"); const env_var_t ifs = env_get_string(L"IFS");
const env_var_t ifs = env_get_string(L"IFS").empty()?NULL:env_get_string(L"IFS").c_str();
if( ! ifs.missing_or_empty() ) if( ! ifs.missing_or_empty() )
{ {