Bug 484457

Summary: rpm fails with error: File not found by glob:
Product: Red Hat Enterprise Linux 5 Reporter: usermike2817
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: ffesti
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-04 09:51:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description usermike2817 2009-02-06 21:48:49 UTC
Description of problem: When attempting to install multiple rpms using wild cards, it fails with error: File not found by glob:


Version-Release number of selected component (if applicable): 4.4.2.3-9.el5


How reproducible: 


Steps to Reproduce:
1. [root@localhost packages]# ls
cdrecord-2.01-10.i386.rpm          elinks-0.11.1-5.1.0.1.el5.i386.rpm
cdrecord-2.01-10.x86_64.rpm        elinks-0.11.1-5.1.0.1.el5.x86_64.rpm
cdrecord-devel-2.01-10.i386.rpm    mkisofs-2.01-10.i386.rpm
cdrecord-devel-2.01-10.x86_64.rpm  mkisofs-2.01-10.x86_64.rpm

2.rpm -Uvh *.i386.rpm *noarch.rpm 

  
Actual results: 
error: File not found by glob: *noarch.rpm


Expected results:
With rpm version 4.4.2-48.el5
error: File not found by glob: *noarch
Preparing...               ##########################   [100%]
   and the i386 rpms install



Additional info: perhaps this is by design, but its not the way it used to work.

Comment 1 usermike2817 2009-02-06 21:52:44 UTC
It doesn't matter what the rpms are, it just matters that one of the arguments given doesn't have any matches when using a wild card ie. *noarch.rpm

Comment 2 Florian Festi 2009-09-04 09:51:04 UTC
Sorry for the late reply:

This is indeed by design. These globs are evaluated and replaced by your shell. This has nothing to do with rpm itself. If one glob has no matches it is passed unchanged by the shell. Rpm correctly refuses to guess whether there is a real error or just a matter of ignoring this argument for convenience. If rpm behaved differently in the past consider this a bug that got fixed.