diff options
| author | Liam Mitchell <[email protected]> | 2025-08-06 17:00:40 -0700 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-08-06 17:00:40 -0700 |
| commit | ef9ad107329a6026dd5290ccc010313129990f90 (patch) | |
| tree | 656747ae47fddf98b048f7c3fc1b700f91676741 | |
| parent | add the correct set of references hashes in batched inline mode (#459) (diff) | |
| parent | Don't add quotes to arguments which are already quoted (diff) | |
| download | zen-ef9ad107329a6026dd5290ccc010313129990f90.tar.xz zen-ef9ad107329a6026dd5290ccc010313129990f90.zip | |
Merge pull request #450 from ue-foundation/lm/double-quotes-fix
Don't add quotes to arguments which are already quoted
| -rw-r--r-- | src/zen/zen.cpp | 3 |
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) { |