Use quotes for args with | too

This commit is contained in:
m
2019-02-05 11:34:52 +01:00
parent fb038e700e
commit fcc6845a23
+1 -1
View File
@@ -192,7 +192,7 @@ private:
} else if (c == '\\') {
escaped_arg += "\\\\";
} else {
if (c == ' ' || c == '&' || c == ';' || c == '>' || c == '<') {
if (c == ' ' || c == '&' || c == ';' || c == '>' || c == '<' || c == '|') {
needs_quotes = true;
}
escaped_arg += c;