Fixed 'command' builtin executing shell functions with same name as the command

This commit is contained in:
2026-02-24 14:54:36 -05:00
parent 478374814e
commit fc377f4716

View File

@@ -730,7 +730,7 @@ impl Dispatcher {
if cmd.flags.contains(NdFlags::FORK_BUILTINS) {
cmd.flags |= NdFlags::NO_FORK;
}
return self.dispatch_cmd(cmd);
return self.exec_cmd(cmd);
}
match cmd_raw.as_str() {
"echo" => echo(cmd, io_stack_mut, curr_job_mut),