Modified parse_util.cpp, parser.cpp, path.cpp to use env_get_string()

This commit is contained in:
Siteshwar Vashisht
2012-01-12 22:56:53 +05:30
parent 3bb4d0b276
commit 943cc68f54
3 changed files with 21 additions and 15 deletions

View File

@@ -2043,7 +2043,9 @@ static int parse_job( process_t *p,
}
else if(cmd[0]==L'$')
{
wchar_t *val = env_get( cmd+1 );
const wcstring val_wstr = env_get_string( cmd+1 );
const wchar_t *val = val_wstr.empty()?NULL:val_wstr.c_str();
if( val )
{
debug( 0,