From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7708 invoked from network); 12 Jul 2021 09:36:39 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Jul 2021 09:36:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:From:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=NPM3z7jnEuhhgc2arjyBbw+Xpu7GSscHrjj2zkwg7xE=; b=xoikcr2g5Qo9xiZwo6hwmvjf2/ c7pS4DpoOaxX5y8bNkBNZ4Bm2e0KdrK3R1mbFLz8x9vCgbfpxtJCohi0UFqMvBJhltd/hABpF8ZdM KGiddWclZAoYBK6yAAV2X251yz9gZ70dggEHG6HyNvUFOO6MFphCZWO+ny4hAfH9dlgKI8KqwwQOu Kk8z1fYWThzU2HDPDPSFGMYsx0wXO+p6NSZ2sVpS8DumI18V5sO7kbacM3BwYdPoBhlJiKQU0+TqM KfyTSBatJe6LnZ875P/MYShW41zZWsf9w+VlJ5BqOBIdvCXxWjdCYHH3HLDQn4cWWpL84YQQ30K3L frmBJICA==; Received: from authenticated user by zero.zsh.org with local id 1m2sMf-0004LW-Js; Mon, 12 Jul 2021 09:36:37 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1m2sM5-00043L-Vd; Mon, 12 Jul 2021 09:36:02 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.94.2) (envelope-from ) id 1m2sM5-0002dG-9b for zsh-workers@zsh.org; Mon, 12 Jul 2021 11:36:01 +0200 From: Oliver Kiddle To: Zsh workers Subject: PATCH: quoting fix for xmllint --pretty completion MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10120.1626082561.1@hydra> Date: Mon, 12 Jul 2021 11:36:01 +0200 Message-ID: <10121-1626082561.294516@7T5m.pw8w.8tCv> X-Seq: 49160 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: 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]' \