diff options
author | Travis Finkenauer <tmfinken@gmail.com> | 2020-06-29 02:01:29 -0400 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-06-29 13:25:00 +0200 |
commit | d8968fb2755de7cbf39fc31bf601e1b19d371d52 (patch) | |
tree | b7b3b48c18b458e6d85b34180dd32cee44995c60 | |
parent | 394648a5f128b7dd2ca2f0e4b06ae4e362c583c9 (diff) |
Properly shell quote flags in test output
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 5a9c3318..6dd436db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,7 +97,7 @@ mod test { let flags_quoted: Vec<String> = command_line_flags .iter() - .map(|x| format!("'{}'", x)) + .map(|x| format!("{}", shlex::quote(x))) .collect(); let flags_str = flags_quoted.join(" "); println!("{}", flags_str); |