pub trait CommandShellExt {
// Required method
fn clear_shell_detection_env(&mut self) -> &mut Self;
}Expand description
Extension trait for std::process::Command to help with shell detection tests.
Required Methods§
Sourcefn clear_shell_detection_env(&mut self) -> &mut Self
fn clear_shell_detection_env(&mut self) -> &mut Self
Clears environment variables used for shell detection.
This removes SHELL, NU_VERSION, FISH_VERSION, ZSH_VERSION,
BASH_VERSION, and PSModulePath to ensure consistent shell detection
behavior in tests.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.