paru icon indicating copy to clipboard operation
paru copied to clipboard

Bash autocompletion warning: command substitution: ignored null byte in input

Open 39george opened this issue 4 weeks ago • 5 comments

Affected Version

paru v2.1.0 - libalpm v16.0.1

Description

Tried to find issue or discussion, can't find. When I type `paru -S <some_package_name> and press TAB to complete it I get warning which mess up terminal.

Output

❯ paru -S gol-bash: warning: command substitution: ignored null byte in input
angci-lint

39george avatar Dec 18 '25 03:12 39george

same problem, seems like the new version does not work correctly with bash completion

bingxinliu avatar Dec 18 '25 09:12 bingxinliu

related: #1450

pfeifferj avatar Dec 19 '25 07:12 pfeifferj

I tried your fix and it didn't work unfortunately, I still get the null byte error, unless it only works for the master branch, I applied it on v2.1.0

Erwin-Iosef avatar Dec 19 '25 17:12 Erwin-Iosef

did you clear the corrupted cache with rm ~/.cache/paru/packages.aur and paru -Pc?

the cache is only refreshed when it's missing or the CompletionInterval timeout has passed

pfeifferj avatar Dec 19 '25 17:12 pfeifferj

I just did and it works now, thanks! But looks like there was another PR on this issue already: #1449

Erwin-Iosef avatar Dec 20 '25 03:12 Erwin-Iosef