Bash completion is broken when readline menu-complete is used #12005
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When the tab button is used for
menu-complete
instead ofcomplete
with Readline the completion script adds the description of options to the completed line.The relevant documentation for Readline.
StackOverflow answer that explains why
menu-complete
is so nice.Steps to reproduce the issue:
TAB: menu-complete
to.inputrc
.bash
and typepodman --c<TAB>
podman --cgroup-manager (Cgroup manager to use ("cgroupfs"|"systemd"))
is added to the current line.bash: syntax error near unexpected token `('
Describe the results you received:
The description for the options is added to the completed line.
Describe the results you expected:
Only the actual option is added.
Output of
podman version
:Output of
podman info --debug
:Irrelevant
Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
The text was updated successfully, but these errors were encountered: