fn run_passthrough(script: &str) -> Result<i32>Expand description
Run a hook command or an MCP server’s command line on this process’s own stdio, untouched: an MCP server speaks JSON-RPC on it, so one added byte breaks it. A lone word is a program, started directly (no shell to mangle a Windows path, nothing to locate first); anything else is a command line, which the CLI joined unquoted, so bash runs it. Except on Windows when the program is a Windows path: bash would strip its backslashes, and only an MCP server’s line can have one (the CLI makes a hook’s paths POSIX), so it is split back into words, as the CLI joined it.