diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-09-03 16:13:02 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-09-03 16:13:17 +0200 |
commit | 3372615e5bc22ed3d4f0f5990ce2e6e41dc06c4f (patch) | |
tree | b75aed5b06c00bd1435239da8bd72696829631b0 /libqpdf | |
parent | 87765bace9be7d8105b3d148dd389a612299275b (diff) | |
download | qpdf-3372615e5bc22ed3d4f0f5990ce2e6e41dc06c4f.tar.zst |
Quote program name in completion output (fixes #1021)
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDFArgParser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc index 3ebec29c..5377b2bc 100644 --- a/libqpdf/QPDFArgParser.cc +++ b/libqpdf/QPDFArgParser.cc @@ -193,7 +193,7 @@ QPDFArgParser::completionCommon(bool zsh) if (!zsh) { std::cout << " -o nospace"; } - std::cout << " -C " << progname << " " << m->whoami << std::endl; + std::cout << " -C \"" << progname << "\" " << m->whoami << std::endl; // Put output before error so calling from zsh works properly std::string path = progname; size_t slash = path.find('/'); |