[Bug 1049826] New: zypper bash completion does not handle short command line switches
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.
http://bugzilla.suse.com/show_bug.cgi?id=1049826 http://bugzilla.suse.com/show_bug.cgi?id=1049826#c1 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Michael Andres <ma@suse.com> --- It's not the short option (-x --[TAB][TAB] most probably works). The command name detection did not do a word-match. '-s', wrongly matching 'refresh-services', was used as a command and 'zypper help -s' did not deliver any longopts to offer. Good catch. Fixed in zypper-1.14.27 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1049826 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| |maint:planned:update -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1049826 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|maint:planned:update |ibs:running:10948:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1049826 http://bugzilla.suse.com/show_bug.cgi?id=1049826#c4 --- Comment #4 from Swamp Workflow Management <swamp@suse.de> --- SUSE-SU-2019:2030-1: An update that solves three vulnerabilities and has 41 fixes is now available. Category: security (moderate) Bug References: 1047962,1049826,1053177,1065022,1099019,1102261,1110542,1111319,1112911,1113296,1114908,1115341,1116840,1118758,1119373,1119820,1119873,1120263,1120463,1120629,1120630,1120631,1121611,1122062,1122471,1123137,1123681,1123843,1123865,1123967,1124897,1125415,1127026,1127155,1127220,1130161,1131823,1135749,1137977,663358,764147,965786,978193,993025 CVE References: CVE-2018-20532,CVE-2018-20533,CVE-2018-20534 Sources used: SUSE Linux Enterprise Workstation Extension 15 (src): PackageKit-1.1.10-4.10.4 SUSE Linux Enterprise Module for Open Buildservice Development Tools 15-SP1 (src): libsolv-0.7.5-3.12.2, libyui-ncurses-pkg-2.48.5.2-3.5.2, libyui-qt-pkg-2.45.15.2-3.5.3, libzypp-17.12.0-3.23.6, zypper-1.14.28-3.18.6 SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 (src): PackageKit-1.1.10-4.10.4, libsolv-0.7.5-3.12.2, libzypp-17.12.0-3.23.6, yast2-pkg-bindings-devel-doc-4.0.13-3.7.2, zypper-1.14.28-3.18.6 SUSE Linux Enterprise Module for Development Tools 15 (src): libsolv-0.7.5-3.12.2 SUSE Linux Enterprise Module for Desktop Applications 15 (src): PackageKit-1.1.10-4.10.4, libyui-qt-pkg-2.45.15.2-3.5.3 SUSE Linux Enterprise Module for Basesystem 15 (src): libsolv-0.7.5-3.12.2, libyui-ncurses-pkg-2.48.5.2-3.5.2, libyui-ncurses-pkg-doc-2.48.5.2-3.5.3, libyui-qt-pkg-2.45.15.2-3.5.3, libyui-qt-pkg-doc-2.45.15.2-3.5.3, libzypp-17.12.0-3.23.6, yast2-pkg-bindings-4.0.13-3.7.2, zypper-1.14.28-3.18.6 SUSE Linux Enterprise Installer 15 (src): libsolv-0.7.5-3.12.2, libyui-ncurses-pkg-2.48.5.2-3.5.2, libyui-qt-pkg-2.45.15.2-3.5.3, libzypp-17.12.0-3.23.6, yast2-pkg-bindings-4.0.13-3.7.2, zypper-1.14.28-3.18.6 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1049826 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:10948:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1049826 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| |obs:running:10713:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1049826 http://bugzilla.suse.com/show_bug.cgi?id=1049826#c5 --- Comment #5 from Swamp Workflow Management <swamp@suse.de> --- openSUSE-SU-2019:1927-1: An update that solves three vulnerabilities and has 41 fixes is now available. Category: security (moderate) Bug References: 1047962,1049826,1053177,1065022,1099019,1102261,1110542,1111319,1112911,1113296,1114908,1115341,1116840,1118758,1119373,1119820,1119873,1120263,1120463,1120629,1120630,1120631,1121611,1122062,1122471,1123137,1123681,1123843,1123865,1123967,1124897,1125415,1127026,1127155,1127220,1130161,1131823,1135749,1137977,663358,764147,965786,978193,993025 CVE References: CVE-2018-20532,CVE-2018-20533,CVE-2018-20534 Sources used: openSUSE Leap 15.0 (src): PackageKit-1.1.10-lp150.11.1, libsolv-0.7.5-lp150.7.1, libyui-ncurses-pkg-2.48.5.2-lp150.7.1, libyui-qt-pkg-2.45.15.2-lp150.7.1, libzypp-17.12.0-lp150.2.13.1, yast2-pkg-bindings-4.0.13-lp150.2.13.1, zypper-1.14.28-lp150.2.13.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1049826 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|obs:running:10713:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com