mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-22 15:51:18 -03:00
replace var_entry_t with env_var_t
This is a step to storing fish vars as actual vectors rather than flat strings.
This commit is contained in:
@@ -296,7 +296,7 @@ static int my_env_set(const wchar_t *cmd, const wchar_t *key, const wcstring_lis
|
||||
// We don't check `val->empty()` because an array var with a single empty string will be
|
||||
// "empty". A truly empty array var is set to the special value `ENV_NULL`.
|
||||
auto val = list_to_array_val(list);
|
||||
retval = env_set(key, *val == ENV_NULL ? NULL : val->c_str(), scope | ENV_USER);
|
||||
retval = env_set(key, val->c_str(), scope | ENV_USER);
|
||||
switch (retval) {
|
||||
case ENV_OK: {
|
||||
retval = STATUS_CMD_OK;
|
||||
|
||||
Reference in New Issue
Block a user