Skip to main content

exec_argv

Function exec_argv 

Source
pub fn exec_argv(args: &[String]) -> i32
Expand description

Execute a command from pre-split argv without going through sh -c. Used by -t mode when the shell hook passes "$@" — arguments are already correctly split by the user’s shell, so re-serializing them into a string and re-parsing via sh -c would risk mangling complex quoted arguments (em-dashes, #, nested quotes, etc.).