mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
Remove read_only stuff from env_var_t
This doesn't work. The real thing that tells if something is read-only is electric_var_t::readonly(). This wasn't used, and we provide no way to make a variable read-only, which makes this an unnecessary footgun.
This commit is contained in:
@@ -1054,8 +1054,7 @@ void env_stack_impl_t::set_in_node(const env_node_ref_t &node, const wcstring &k
|
||||
|
||||
var = var.setting_vals(std::move(val))
|
||||
.setting_exports(res_exports)
|
||||
.setting_pathvar(res_pathvar)
|
||||
.setting_read_only(is_read_only(key));
|
||||
.setting_pathvar(res_pathvar);
|
||||
|
||||
// Perhaps mark that this node contains an exported variable, or shadows an exported variable.
|
||||
// If so regenerate the export list.
|
||||
|
||||
Reference in New Issue
Block a user