pub fn login_shell_with(
shell_env: Option<String>,
passwd_shell: Option<String>,
runs: impl Fn(&str) -> bool,
) -> StringExpand description
login_shell with its sources and the program check injected, testable
without mutating process-global state (which would race parallel tests).