pub struct ShellSpec {
pub detect_program: bool,
pub login_arg: bool,
pub login_path_probe: bool,
}Expand description
A harness’s shell invocation shape (plan-finalization Q5, 2026-07-21): the
choice rides the request; execution stays behind the host door. Grok’s
shape is { detect_program: true, login_arg: false, login_path_probe: true }.
Fields§
§detect_program: boolUse the user’s $SHELL when its basename is bash or zsh (grok’s
detection); otherwise fall back to the host’s configured program.
login_arg: booltrue = -lc (login), false = -c (grok always uses -c).
login_path_probe: boolInject the login shell’s PATH (probed once per host, cached) so
non-login -c children still see user PATH entries (grok’s probe).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShellSpec
impl RefUnwindSafe for ShellSpec
impl Send for ShellSpec
impl Sync for ShellSpec
impl Unpin for ShellSpec
impl UnsafeUnpin for ShellSpec
impl UnwindSafe for ShellSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more