branch: elpa/pcmpl-args commit e6957896b065e2fda80a8258dfebb86b49742c15 Author: Troy Hinckley <t.mac...@gmail.com> Commit: GitHub <nore...@github.com>
Add shell-quote-argument to name --- pcmpl-args.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcmpl-args.el b/pcmpl-args.el index 5baa5f246a..9388f67624 100644 --- a/pcmpl-args.el +++ b/pcmpl-args.el @@ -789,7 +789,7 @@ insert its content into the current buffer.") ;; starting with `-' that aren't really options. (push "MANWIDTH=10000" process-environment) (pcmpl-args-process-file - shell-file-name shell-command-switch (format "man %s | col -b" name)))) + shell-file-name shell-command-switch (format "man %s | col -b" (shell-quote-argument name))))) (defun pcmpl-args-extract-argspecs-from-manpage (name &rest args) "Return a list of argspecs by parsing the manpage identified by NAME.