Bug 1218255 - package-spec globbing fails when version is specified and not dash-separated
Summary: package-spec globbing fails when version is specified and not dash-separated
Keywords:
Status: CLOSED DUPLICATE of bug 1083679
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-04 12:24 UTC by Richard S. Hendershot
Modified: 2015-05-05 12:58 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-04 12:40:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.