Skip to content

Bash null-byte warning for tab-completion #2716

@AzarAI-TOP

Description

@AzarAI-TOP

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

  1. input yay -S xxx (xxx is part of the name of package)
  2. 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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: ResolvedIssue or question has been answered or fixed successfullyType: Bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions