mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Drop global variable shadowing warning on universal var unset
When unsetting, the scope indicates the scope that was *removed* not set, so the warning is incorrectly triggered. If anything, the confusion is now removed or we emit a warning that the variable is still present in another scope (but don't do that!). Closes #9338.
This commit is contained in:
@@ -664,8 +664,6 @@ static int builtin_set_erase(const wchar_t *cmd, set_cmd_opts_t &opts, int argc,
|
||||
// This is cheesy, but I don't expect this to be checked often.
|
||||
if (retval != STATUS_CMD_OK) {
|
||||
ret = retval;
|
||||
} else {
|
||||
warn_if_uvar_shadows_global(cmd, opts, split->varname, streams, parser);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user