aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/zen/zen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zen/zen.cpp b/src/zen/zen.cpp
index 598ef9314..64cdbf5c4 100644
--- a/src/zen/zen.cpp
+++ b/src/zen/zen.cpp
@@ -784,7 +784,8 @@ main(int argc, char** argv)
std::string_view ThisArg(argv[j]);
PassthroughArgV.push_back(std::string(ThisArg));
- const bool NeedsQuotes = (ThisArg.find(' ') != std::string_view::npos);
+ const bool NeedsQuotes =
+ (ThisArg.find(' ') != std::string_view::npos) && !(ThisArg.starts_with("\"") && ThisArg.ends_with("\""));
if (NeedsQuotes)
{