http://bugzilla.suse.com/show_bug.cgi?id=1049826 Bug ID: 1049826 Summary: zypper bash completion does not handle short command line switches Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.3 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@forge.provo.novell.com Reporter: astieger@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- zypper bash completion does not handle the short versions of command line switches.
From zypper help search [...] -x, --match-exact Searches for an exact match of the search strings. [...] -s, --details Show each available version in each repository
But only long options are expanded: $ zypper search [TAB][TAB] * --file-list --name --repo --suggests --case-sensitive --installed-only --not-installed-only --requires --type --conflicts --match-exact --obsoletes --search-descriptions If --details --match-substrings --provides --sort-by-name --details, --match-words --recommends --sort-by-repo ( See bug 1049825 for the "*" and the "If") So the problem is if a partial command was entered with the valid short form -s for --details, further completion fails: zypper search -s --[TAB][TAB] The expected behavior would be to expand short options, or at least not stop subsequent expansions of long options. -- You are receiving this mail because: You are on the CC list for the bug.