mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-24 09:21:16 -03:00
Equip parser_t with a variable stack
Prepares to eliminate env_get and env_set by accessing variables through a parser.
This commit is contained in:
@@ -100,7 +100,7 @@ static wcstring user_presentable_path(const wcstring &path) {
|
||||
return replace_home_directory_with_tilde(path);
|
||||
}
|
||||
|
||||
parser_t::parser_t() = default;
|
||||
parser_t::parser_t() : variables(env_stack_t::principal()) {}
|
||||
|
||||
// Out of line destructor to enable forward declaration of parse_execution_context_t
|
||||
parser_t::~parser_t() = default;
|
||||
|
||||
Reference in New Issue
Block a user