mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 15:01:16 -03:00
Add detection of eval to the parser
While `eval` is still a function, this paves the way for changing that in the future, and lets the proc/exec functions detect when an eval is used to allow/disallow certain behaviors and optimizations.
This commit is contained in:
@@ -944,6 +944,7 @@ static bool exec_process_in_job(parser_t &parser, process_t *p, std::shared_ptr<
|
||||
// Execute the process.
|
||||
p->check_generations_before_launch();
|
||||
switch (p->type) {
|
||||
case process_type_t::eval: /* so long as `eval` is a function */
|
||||
case process_type_t::function:
|
||||
case process_type_t::block_node: {
|
||||
// Allow buffering unless this is a deferred run. If deferred, then processes after us
|
||||
|
||||
Reference in New Issue
Block a user