mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 19:31:14 -03:00
Redesign new environment variables to use env_var_t instead of wcstring
Migrate uses of empty() to missing() to distinguish between empty variable and unset variable
This commit is contained in:
@@ -2044,8 +2044,8 @@ static int parse_job( process_t *p,
|
||||
else if(cmd[0]==L'$')
|
||||
{
|
||||
|
||||
const wcstring val_wstr = env_get_string( cmd+1 );
|
||||
const wchar_t *val = val_wstr.empty()?NULL:val_wstr.c_str();
|
||||
const env_var_t val_wstr = env_get_string( cmd+1 );
|
||||
const wchar_t *val = val_wstr.missing() ? NULL : val_wstr.c_str();
|
||||
if( val )
|
||||
{
|
||||
debug( 0,
|
||||
|
||||
Reference in New Issue
Block a user