Early work on scripting features

This commit is contained in:
2025-03-16 02:56:29 -04:00
parent c0fb3f5914
commit 92d7766765
14 changed files with 376 additions and 132 deletions

View File

@@ -28,7 +28,10 @@ pub fn read_line<'s>() -> ShResult<String> {
}
Ok(line)
}
Err(ReadlineError::Eof) => std::process::exit(0),
Err(ReadlineError::Eof) => {
kill(Pid::this(), Signal::SIGQUIT)?;
Ok(String::new())
}
Err(ReadlineError::Interrupted) => Ok(String::new()),
Err(e) => {
return Err(e.into())