diff options
| author | Dan Engelbrecht <[email protected]> | 2025-05-13 18:51:12 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-05-13 18:51:12 +0200 |
| commit | 4ca731fe4445f2c84582a80a7c635e3d736b3cf3 (patch) | |
| tree | 5d6c2a7bfccb9f5b8f68940e7cdb62df78f7025f | |
| parent | 5.6.8-pre1 (diff) | |
| download | zen-4ca731fe4445f2c84582a80a7c635e3d736b3cf3.tar.xz zen-4ca731fe4445f2c84582a80a7c635e3d736b3cf3.zip | |
skip empty or single-space command line arguments (#393)
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | src/zen/zen.cpp | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 46145a9f5..91e3302bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,11 +21,12 @@ }, }, } -- Improvement: `--cache-memlayer-sizethreshold` is now deprecated and has a new name: `--cache-bucket-memlayer-sizethreshold` to line up with per cache bucket configuration - Bugfix: Handle invalid plugin config file without terminating - Bugfix: Gracefully handle errors while running `oplog-mirror` +- Improvement: `--cache-memlayer-sizethreshold` is now deprecated and has a new name: `--cache-bucket-memlayer-sizethreshold` to line up with per cache bucket configuration - Improvement: Remove CAS log files at startup when we write full state index - Improvement: Optimize memory-buffered chunk iteration sizes +- Improvement: Skip command line arguments that are empty or just a single space for `zen` command line tool on Mac/Linux to handle "triple space" problem. UE-273411 ## 5.6.7 - Feature: Support for `--log-progress` to output UE style `@progress` log messages has been added to diff --git a/src/zen/zen.cpp b/src/zen/zen.cpp index 7c21035c0..53fdf3d36 100644 --- a/src/zen/zen.cpp +++ b/src/zen/zen.cpp @@ -593,7 +593,11 @@ main(int argc, char** argv) Args.reserve(argc); for (int I = 0; I < argc; I++) { - Args.push_back(std::string(argv[I])); + std::string Arg(argv[I]); + if ((!Arg.empty()) && (Arg != " ")) + { + Args.emplace_back(std::move(Arg)); + } } #endif std::vector<char*> RawArgs = zen::StripCommandlineQuotes(Args); |