[Bug 397190] New: zypper bug with file globbing
https://bugzilla.novell.com/show_bug.cgi?id=397190 Summary: zypper bug with file globbing Product: openSUSE 11.0 Version: RC 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: gekker@novell.com QAContact: qa@suse.de Found By: --- when entering a command like `zypper up -t package ruby*` it works fine if you are in a path where no files exist that match the expression "ruby*". sudo zypper up -t package ruby* Reading installed packages... Package 'rubygems.files.txt' is not installed. Nothing to do. In this case since rubygems.files.txt exists in the current working directory, the command fails. -- 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=397190 User matz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=397190#c1 Michael Matz <matz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz@novell.com Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Michael Matz <matz@novell.com> 2008-06-04 11:27:36 MDT --- Fileglobbing is done by the shell, not by zypper. It's the same difference for "echo bla*" depending on if the current dir contains such files or not. non-matching globs are usually expanded to itself (and hence seen by zypper), that can be changed by "shopt -s nullglob" in bash. You can disable all globbing with "set -f", so that "bla*" will be given literally to the program, not matter if a file list "blabla" exists. Not a zypper bug. -- 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=397190 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=397190#c2 --- Comment #2 from Michael Schröder <mls@novell.com> 2008-06-05 03:31:17 MDT --- Or just quote the argument: zypper up -t package "ruby*" -- 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.
participants (1)
-
bugzilla_noreply@novell.com