Re: dnf crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/03/18 02:30, Patrick O'Callaghan wrote:
On Mon, 2018-03-05 at 22:21 +0800, Ed Greshko wrote:
On 03/05/18 20:46, Eyal Lebedinsky wrote:
On 05/03/18 23:35, Tim wrote:
On Mon, 2018-03-05 at 12:55 +1100, Eyal Lebedinsky wrote:
While it mostly works, this specific command fails:

$ dnf provides '*/Droid Sans*'

Is that first asterisk slash sequence the right characters, in the
right order?

Yes, the pattern is a standard wildcard syntax (not a regex).


Right.  According to the dnf man page

SPECIFYING PROVIDES
        <provide-spec> in command descriptions  means  the  command  operates  on
        packages  providing  the  given spec. This can either be an explicit pro‐
        vide, an implicit provide (i.e. name of the package) or a  file  provide.
        The selection is case-sensitive and globbing is supported.

So, since it is "globbing" one could have used as an alternative

dnf provides '*/Droid?Sans*'

The ? matching any single character, including <space>.

or

dnf provides '*/Droid*Sans*'

With * matching any character including none.

That works, but '*/Droid\ Sans*' (i.e. with a literal space) segfaults.

A '\' inside single quotes is *not* an escape, use "*/Droid\ Sans*" for that.

poc

--
Eyal Lebedinsky (fedora@xxxxxxxxxxxxxx)
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux