[Bug 664937] New: zypper search doesn't allow searching for a leading "-"
https://bugzilla.novell.com/show_bug.cgi?id=664937 https://bugzilla.novell.com/show_bug.cgi?id=664937#c0 Summary: zypper search doesn't allow searching for a leading "-" Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: davejplater@gmail.com QAContact: jsrain@novell.com Found By: --- Blocker: --- I wanted to search for all packages that ended in -ruby (checking for the correct groups for language bindings) with the following results : 1.# zypper se -ruby Repository 'uby' not found by its alias, number, or URI. Use 'zypper repos' to get the list of defined repositories. Former is an expected result and not a bug the next ones are. 2.# zypper se "-ruby" Repository 'uby' not found by its alias, number, or URI. Use 'zypper repos' to get the list of defined repositories. Maybe weak quotes aren't enough but the next two should definitely give me the required result. 3. # zypper se '-ruby' Repository 'uby' not found by its alias, number, or URI. Use 'zypper repos' to get the list of defined repositories. 4.# zypper se \-ruby Repository 'uby' not found by its alias, number, or URI. Use 'zypper repos' to get the list of defined repositories. While writing this bug I thought of using "--" which is used to extra pass arguments to macros etc. and it works. 5.# zypper se -- -ruby Loading repository data... Reading installed packages... S | Name | Summary | Type --+---------------------------------+--------------------------------------------------------------+----------- | cmpi-bindings-ruby | Adapter to write and run CMPI-type CIM providers in Ruby | package | cmpi-bindings-ruby-debuginfo | Debug information for package cmpi-bindings-ruby | package | graphviz-ruby | Ruby Extension for Graphviz | package | graphviz-ruby-debuginfo | Debug information for package graphviz-ruby | package i | kdebindings3-ruby | Ruby Bindings for Qt and KDE Libraries | package i | kdebindings3-ruby-debuginfo | Debug information for package kdebindings3-ruby | package | koffice-ruby | Ruby support and scripts for KOffice scripting | package | koffice-ruby-debuginfo | Debug information for package koffice-ruby | package | libcaca-ruby | Ruby bindings for libcaca | package | libcaca-ruby-debuginfo | Debug information for package libcaca-ruby | package | libcaca0-ruby | Ruby bindings package for libcaca | package | libcaca0-ruby-debuginfo | Debug information for package libcaca0-ruby | package | openwsman-ruby | Ruby bindings for openwsman client API | package | openwsman-ruby-debuginfo | Debug information for package openwsman-ruby | package | redland-ruby | Perl bindings for programs that use Redland | package i | redland-ruby-debuginfo | Debug information for package redland-ruby | package | rubygem-libxml-ruby | Ruby language bindings for the GNOME Libxml2 XML toolkit | package | rubygem-libxml-ruby | Ruby language bindings for the GNOME Libxml2 XML toolkit | srcpackage | subversion-ruby | Allows Ruby scripts to directly use Subversion repositories. | package | subversion-ruby-debuginfo | Debug information for package subversion-ruby | package | xmms2-ruby | Ruby support for XMMS2 | package | xmms2-ruby-debuginfo | Debug information for package xmms2-ruby | package | yast2-ruby-bindings | Ruby bindings for the YaST platform | package | yast2-ruby-bindings-debuginfo | Debug information for package yast2-ruby-bindings | package | yast2-ruby-bindings-debugsource | Debug sources for package yast2-ruby-bindings | package zypper honors weak quotes ("") used with "install", I would have at least expected zypper to honor the escape "\" and there isn't a reason why both types of quotes shouldn't work either. At least an explanation in the --help output from the affected functions that "--" should be used if the search term has a leading "-" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=664937
https://bugzilla.novell.com/show_bug.cgi?id=664937#c
wei wang
https://bugzilla.novell.com/show_bug.cgi?id=664937
https://bugzilla.novell.com/show_bug.cgi?id=664937#c1
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=664937
https://bugzilla.novell.com/show_bug.cgi?id=664937#c2
--- Comment #2 from Dave Plater
participants (1)
-
bugzilla_noreply@novell.com