Modified exec.cpp to use env_get_string(); rolled back changes to expand.cpp in last commit, because pressing ^D results into an error with the changes

This commit is contained in:
Siteshwar Vashisht
2012-01-12 21:39:00 +05:30
parent 9b56b67c0e
commit ee687ee433
2 changed files with 4 additions and 5 deletions

View File

@@ -1739,8 +1739,8 @@ int exec_subshell( const wchar_t *cmd,
char sep=0;
CHECK( cmd, -1 );
ifs = env_get_string(L"IFS").empty()?NULL:env_get_string(L"IFS");
// ifs = env_get(L"IFS");
ifs = env_get_string(L"IFS").empty()?NULL:env_get_string(L"IFS").c_str();
if( ifs && ifs[0] )
{