work on fixing login shell i/o issues

This commit is contained in:
2026-03-03 23:00:25 -05:00
parent d67b7c2aad
commit ed3a4c8d56
2 changed files with 10 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ fn main() -> ExitCode {
} else if let Some(cmd) = args.command {
exec_input(cmd, None, false, None)
} else {
shed_interactive()
shed_interactive(args)
} {
eprintln!("shed: {e}");
};
@@ -160,9 +160,9 @@ fn run_script<P: AsRef<Path>>(path: P, args: Vec<String>) -> ShResult<()> {
exec_input(input, None, false, Some(path_raw))
}
fn shed_interactive() -> ShResult<()> {
fn shed_interactive(args: ShedArgs) -> ShResult<()> {
let _raw_mode = raw_mode(); // sets raw mode, restores termios on drop
sig_setup();
sig_setup(args.login_shell);
if let Err(e) = source_rc() {
e.print_error();