Implemented brace expansion

This commit is contained in:
2025-03-10 01:50:12 -04:00
parent 363e4805b7
commit e81c4903b9
9 changed files with 221 additions and 7 deletions

View File

@@ -83,6 +83,11 @@ pub fn sh_quit(code: i32) -> ! {
if let Some(termios) = crate::get_saved_termios() {
termios::tcsetattr(std::io::stdin(), termios::SetArg::TCSANOW, &termios).unwrap();
}
if code == 0 {
write_err("exit\n").ok();
} else {
write_err(format!("exit {code}\n")).ok();
}
exit(code);
}