Fixed 'command' builtin executing shell functions with same name as the command
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user