Bug 1218255

Summary: package-spec globbing fails when version is specified and not dash-separated
Product: [Fedora] Fedora Reporter: Richard S. Hendershot <rshendershot>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jsilhan, michal, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-04 12:40:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard S. Hendershot 2015-05-04 12:24:46 UTC
Description of problem:  dnf remove kernel*4.0.0*, dnf list acpi*1*


Version-Release number of selected component (if applicable):  dnf-1.0.0-1.fc22


How reproducible:  100%


Steps to Reproduce:
1. dnf list acpi
2. dnf list acpi*
3. dnf list acpi*1*

Actual results:  Error: No matching Packages to list


Expected results:  installed packages matched by glob


Additional info:  man: "The  name specification globbing characters "?, * and [ are allowed and trigger shell-like glob matching."

Comment 1 Radek Holy 2015-05-04 12:40:27 UTC
Hello, this is a duplicate of the bug 1083679.

*** This bug has been marked as a duplicate of bug 1083679 ***

Comment 2 Richard S. Hendershot 2015-05-04 13:18:44 UTC
"dnf list acpi*-1*" performs as expected.  It's a constraint on globbing most won't expect however.  

likewise "dnf remove kernel*-4.0.0*" provides what I need.

Comment 3 Michal Jaegermann 2015-05-04 15:26:22 UTC
(In reply to Richard S. Hendershot from comment #2)
> "dnf list acpi*-1*" performs as expected.  It's a constraint on globbing
> most won't expect however.  

See bug 1083679#c8 and the original report there.  With a documentation actively misleading it is not a very big surprise that "most won't expect" as what is passing for globbing here is nothing of that sort.  Actually I found pattern matching as used by dnf quite unpredictable and requiring too many lucky guesses. NOTABUG obstinate claims fall flat.

Comment 4 Richard S. Hendershot 2015-05-05 12:55:34 UTC

*** This bug has been marked as a duplicate of bug 1083679 ***

Comment 5 Richard S. Hendershot 2015-05-05 12:58:46 UTC
I think this ended up NOTABUG due to my error.  Your bug is WONTFIX.  When I have a chance I'll look into pattern matching, but clearly the documentation is ERRATA