From 85cc198b0db286c60ef74e0e2eb3034eff036283 Mon Sep 17 00:00:00 2001 From: Scott-Nx <158021536+Scott-Nx@users.noreply.github.com> Date: Mon, 18 May 2026 22:05:53 +0700 Subject: [PATCH] fix(completion): handle NUL-separated paru package candidates `paru -Pc` may emit NUL-separated completion candidates. Passing that output directly through Bash command substitution makes Bash drop the NUL bytes and print: bash: warning: command substitution: ignored null byte in input Convert NUL bytes to newlines before passing the output to `_arch_compgen` so package completion keeps candidate separation without triggering the warning. --- completions/bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/bash b/completions/bash index f6b2ba84..f417f055 100644 --- a/completions/bash +++ b/completions/bash @@ -41,7 +41,7 @@ _pacman_pkg() { _paru_pkg() { [ -z "$cur" ] && _pacman_pkg Slq && return - _arch_compgen "$(paru -Pc)" + _arch_compgen "$(paru -Pc | tr '\000' '\n')" } _pacman_repo_list() {