From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id C46C21FF139 for ; Tue, 24 Feb 2026 10:01:52 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D93051EF76; Tue, 24 Feb 2026 10:02:47 +0100 (CET) From: Lukas Wagner To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager] cli: fix zsh shell completion definitions Date: Tue, 24 Feb 2026 10:02:05 +0100 Message-ID: <20260224090205.15379-1-l.wagner@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1771923714413 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.038 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: F4FZEC4VXX7XYCDENUKXGBQAF4I4H7LT X-Message-ID-Hash: F4FZEC4VXX7XYCDENUKXGBQAF4I4H7LT X-MailFrom: l.wagner@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: To continue the `compadd` call on the next line, we need a literal \ and then a newline (\n), meaning we need to first escape the \ and then add the newline character. Signed-off-by: Lukas Wagner --- cli/completions/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/completions/Makefile b/cli/completions/Makefile index 5eceaea7..5d2a814f 100644 --- a/cli/completions/Makefile +++ b/cli/completions/Makefile @@ -20,7 +20,7 @@ _%: @printf ' cmd=$${words[1]}\n' >>$@.tmp @printf ' curr=$${words[cwords]}\n' >>$@.tmp @printf ' prev=$${words[cwords-1]}\n' >>$@.tmp - @printf ' compadd -- $$(COMP_CWORD="$$cwords" COMP_LINE="$$line" COMP_POINT="$$point" \\n' >>$@.tmp + @printf ' compadd -- $$(COMP_CWORD="$$cwords" COMP_LINE="$$line" COMP_POINT="$$point" \\\n' >>$@.tmp @printf ' $* bashcomplete "$$cmd" "$$curr" "$$prev")\n' >>$@.tmp @printf '}\n' >>$@.tmp mv $@.tmp $@ -- 2.47.3