Skip to main content

build_shell_with_args_cmd_args

Function build_shell_with_args_cmd_args 

Source
pub fn build_shell_with_args_cmd_args(command: &str) -> Vec<String>
Expand description

Build argv for a shell-with-c command; everything after -c is joined as one argument. Reverses the join(’ ’) that collapsed the original quoted argument. Used to pass bash -i -c "nvm --version" directly as argv (issue #91 fix).