diff --git a/exec.cpp b/exec.cpp index ab347a98e..384fa4e36 100644 --- a/exec.cpp +++ b/exec.cpp @@ -1740,7 +1740,7 @@ int exec_subshell( const wchar_t *cmd, CHECK( cmd, -1 ); - ifs = env_get(L"IFS"); + ifs = env_get_string(L"IFS").empty()?NULL:env_get_string(L"IFS"); if( ifs && ifs[0] ) {