Skip to main content

is_interactive_shell_command

Function is_interactive_shell_command 

Source
pub fn is_interactive_shell_command(command: &str) -> bool
Expand description

Returns true if command is a bare interactive shell invocation (no -c flag). Used to avoid double-wrapping shells in isolation environments (issue #84).

Examples: “bash”, “zsh”, “bash –norc”, “/usr/local/bin/bash” Counter-examples: “bash -c echo hi”, “npm test”