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