diff --git a/Cargo.toml b/Cargo.toml index cebc918..f032f4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shlex" -version = "1.2.0" +version = "1.2.1" authors = [ "comex ", "Fenhl " diff --git a/src/bytes.rs b/src/bytes.rs index e3306f5..8d86ac2 100644 --- a/src/bytes.rs +++ b/src/bytes.rs @@ -170,7 +170,8 @@ pub fn quote(in_bytes: &[u8]) -> Cow<[u8]> { b"\"\""[..].into() } else if in_bytes.iter().any(|c| match *c as char { '|' | '&' | ';' | '<' | '>' | '(' | ')' | '$' | '`' | '\\' | '"' | '\'' | ' ' | '\t' | - '\r' | '\n' | '*' | '?' | '[' | '#' | '~' | '=' | '%' => true, + '\r' | '\n' | '*' | '?' | '[' | '#' | '~' | '=' | '%' | '{' | '}' | + '\u{80}' ..= '\u{10ffff}' => true, _ => false }) { let mut out: Vec = Vec::new(); @@ -200,8 +201,11 @@ pub fn join<'a, I: core::iter::IntoIterator>(words: I) -> Vec