Skip to main content

read_shell_word

Function read_shell_word 

Source
fn read_shell_word(s: &str, start: usize) -> Option<(String, usize)>
Expand description

Read one shell word starting at start: single-quoted, double-quoted and backslash-escaped parts, up to unquoted whitespace or the end. Returns the word’s value and the byte offset after it.