Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: quoting fix for xmllint --pretty completion
- X-seq: zsh-workers 49160
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: quoting fix for xmllint --pretty completion
- Date: Mon, 12 Jul 2021 11:36:01 +0200
- Archived-at: <https://zsh.org/workers/49160>
- List-id: <zsh-workers.zsh.org>
Completion after xmllint --pretty complains with: (eval):1: unmatched '
The double quotes alone were not enough to handle the single quote
as _arguments is using eval. You need to actually complete that option
to see the error so this has gone unnoticed.
Oliver
diff --git a/Completion/Unix/Command/_xmlsoft b/Completion/Unix/Command/_xmlsoft
index 6f7e3b7c9..9f1206988 100644
--- a/Completion/Unix/Command/_xmlsoft
+++ b/Completion/Unix/Command/_xmlsoft
@@ -98,7 +98,7 @@ case $service in
'--format[reformat/reindent the input]' \
'--encode[output in the given encoding]:encoding:(${encoding[@]})' \
'--dropdtd[remove the DOCTYPE of the input docs]' \
- "--pretty[pretty-print in a particular style]:style:((0\:don't\ pretty\ print 1\:reformat 2\:add\ whitespace))" \
+ "--pretty[pretty-print in a particular style]:style:((0\:don\'t\ pretty\ print 1\:reformat 2\:add\ whitespace))" \
'--c14n[save in W3C canonical format]' \
'--c14n11[save in W3C canonical format v1.1 (with comments)]' \
'--exc-c14n[save in W3C exclusive canonical format]' \
Messages sorted by:
Reverse Date,
Date,
Thread,
Author