implemented the pushd, popd, and dirs builtins

This commit is contained in:
2026-02-20 01:29:40 -05:00
parent e8473e82a1
commit 2184b9b361
5 changed files with 437 additions and 17 deletions

View File

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