Skip to main content

env_vars

Function env_vars 

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

Extract leading KEY=VALUE pairs from a command string.

Uses shlex for correct handling of quoted values like FOO="bar baz". Stops at the first token that is not a valid assignment.