| Summary: | dnf wildcard does not return results | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | userfed <bwp6> |
| Component: | dnf | Assignee: | rpm-software-management |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 24 | CC: | bwp6, jmracek, jsilhan, mluscon, packaging-team-maint, pnemade, rpm-software-management, vmukhame |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-26 11:19:50 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: | |
|
Description
userfed
2016-09-23 21:31:27 UTC
I think bash expands 's*' to real filenames. Try: * dnf list 's*' or * dnf list s\* your suggestion s\* worked. Thanks dnf handles s* differently. If I do a "ls s*" or "ls t*" the results are as expected, listing for files starting with s or t, respectively. The dnf results for t* and other letters is similar to ls but the results for s* is incorrect. The problem is related to files or directories that you have in directory from where you execute the command. If you run 'dnf list l*' the shell first take l* argument and try to complete it with file name in the directory. Example: if file lisdd.txt in directory and you run 'dnf list l*' than dnf command is like 'dnf list lisdd.txt'. But if you run "dnf list 'l*'" then the argument 'l*'is never bash completed by shell and it is always passed into dnf correctly as l*. |