mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-26 16:01:15 -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:
@@ -278,7 +278,13 @@ wchar_t *expand_escape_variable( const wchar_t *in )
|
||||
al_destroy( &l );
|
||||
|
||||
return (wchar_t *)buff.buff;
|
||||
}
|
||||
|
||||
wcstring expand_escape_variable2( const wcstring &in ) {
|
||||
wchar_t *tmp = expand_escape_variable(in.c_str());
|
||||
wcstring result(tmp ? tmp : L"");
|
||||
free(tmp);
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user