Bash null-byte warning for tab-completion
Affected Version
yay v12.5.3 - libalpm v15.0.0
Describe the bug
After updating yay today, I find a warning-level issue for tab-completion. When I press tab for completion, the bash produce a warning:
bash: warning: command substitution: ignored null byte in input
And I'm sure my completion file is same with the origin one, and tried reinstalling yay and bash-complete, but it doesn't work.
Reproduction Steps
- input
yay -S xxx(xxx is part of the name of package) - press tab
Expected behavior
a clear completion list of packages without warning info
Output
$ yay -S manbash: warning: command substitution: ignored null byte in input
man2html man-pages-cs man-pages-hu man-pages-pt_br man-pages-zh_cn
man-db man-pages-da man-pages-id man-pages-ro man-pages-zh_tw
mandoc man-pages-de man-pages-it man-pages-ru manuals
mandown man-pages-el man-pages-mk man-pages-sr manuskript
mangohud man-pages-es man-pages-nb man-pages-sv
manifold man-pages-fi man-pages-nl man-pages-uk
man-pages man-pages-fr man-pages-pl man-pages-vi
$ yay -S libbash: warning: command substitution: ignored null byte in input
Display all 1452 possibilities? (y or n)
How can I dismiss this warning ?
Your completion cache was probably generated before v12.5.3 and now contains some gzip data it should not. Can you delete ~/.cache/yay/completion.cache and try again?
EDIT: running yay -Pcc should regenerate the file correctly
@Jguer I had an issue similar to the user above but there was no display of what could complete it as shown above. instead i got something like this
[user@user-pc ~]$ yay -S projebash: warning: command substitution: ignored null byte in input
ctmbash: warning: command substitution: ignored null byte in input)
After doing as youve said, it is now displaying as the user above
[user@user-pc ~]$ yay -S probash: warning: command substitution: ignored null byte in input
procinfo-ng profile-validate prometheus-blackbox-exporter prometheus-redis-exporter promtail protonutils
procps-ng progpick prometheus-elasticsearch-exporter prometheus-smartctl-exporter prosody proton-vpn-gtk-app
procs progress prometheus-ipmi-exporter prometheus-smokeping-prober protege protozero
procstatd proj prometheus-json-exporter prometheus-snmp-exporter protobuf protozero-docs
procyon-decompiler projectm prometheus-memcached-exporter prometheus-ssl-exporter protobuf-c proximity-sort
profanity projectm-pulseaudio prometheus-mysqld-exporter prometheus-systemd-exporter protonmail-bridge proxmark3
profanity-gtk projectm-sdl prometheus-node-exporter prometheus-unbound-exporter protonmail-bridge-core proxyboi
profile-cleaner prometheus prometheus-nut-exporter prometheus-varnish-exporter protontricks proxychains-ng
profile-sync-daemon prometheus-bird-exporter prometheus-postgres-exporter prometheus-wireguard-exporter protonup-qt proxytunnel
Edit: grammar check
Possibly related, I'm not seeing AUR packages in the tab completion, either. For example, synergy3-bin (or anything starting with 'synergy') doesn't show up in tab completion, but it is installable.
I've been experiencing the same issue, clearing cache didn't help
[matt@mango temp]$ rm -rf ~/.cache/yay/
[matt@mango temp]$ yay --version
yay v12.5.0 - libalpm v15.0.0
[matt@mango temp]$ yay -Syu tabbash: warning: command substitution: ignored null byte in input
iew ^C
[matt@mango temp]$ pacman -Syu ta
tabiew taglib tailspin tali talosctl tangler taplo-cli tarsnap
This issue is present in all versions before v12.5.3 @Derpthemeus, your yay version is out of date