mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-26 02:51:16 -03:00
Re-implement eval as a regular builtin
I did not realize builtins could safely call into the parser and inject jobs during execution. This is much cleaner than hacking around the required shape of a plain_statement.
This commit is contained in:
@@ -161,9 +161,6 @@ process_type_t parse_execution_context_t::process_type_for_command(
|
||||
case parse_statement_decoration_builtin:
|
||||
process_type = process_type_t::builtin;
|
||||
break;
|
||||
case parse_statement_decoration_eval:
|
||||
process_type = process_type_t::eval;
|
||||
break;
|
||||
case parse_statement_decoration_none:
|
||||
if (function_exists(cmd)) {
|
||||
process_type = process_type_t::function;
|
||||
|
||||
Reference in New Issue
Block a user