Implemented the exec builtin

Fixed readline and terminal interactions using stdin instead of /dev/tty
This commit is contained in:
2026-02-20 12:17:48 -05:00
parent 2184b9b361
commit 129390c2da
16 changed files with 384 additions and 41 deletions

View File

@@ -26,11 +26,12 @@ pub mod test; // [[ ]] thing
pub mod trap;
pub mod zoltraak;
pub mod dirstack;
pub mod exec;
pub const BUILTINS: [&str; 24] = [
pub const BUILTINS: [&str; 25] = [
"echo", "cd", "read", "export", "pwd", "source", "shift", "jobs", "fg", "bg", "alias", "unalias",
"return", "break", "continue", "exit", "zoltraak", "shopt", "builtin", "command", "trap",
"pushd", "popd", "dirs"
"pushd", "popd", "dirs", "exec",
];
/// Sets up a builtin command