On Sat, 30 Aug 2003 16:13:59 -0500
MKlinke <[EMAIL PROTECTED]> wrote:

> On Saturday 30 August 2003 16:02, Otto Haliburton wrote:
> > Why doesn't it work if you give rpm the name with [1] in it that's
> > the question.  The name shouldn't make any difference if you get it
> > right in the rpm.
> >
> 
> It's possible that the RPM utility parses the command argument line for 
> version identification and/or regressive file manipulation.  You'd 
> probably have to look at the source code to be sure.
> 
> Regards,  Mke Klinke
> 
> 

You're exactly right.  rpm does it's own _globals_ expansion and
recognizes the square brackets just like asterisks and other 
special characters.   It's an amusing experiment to try to
install an rpm with square brackets in the name:  


# ls
ruby-1.[1].8.0-1.i386.rpm

# rpm -Uvh ruby-1.[1].8.0-1.i386.rpm
error: File not found by glob: ruby-1.[1].8.0-1.i386.rpm

# rpm -Uvh *.rpm
error: File not found by glob: ruby-1.[1].8.0-1.i386.rpm

# rpm -Uvh ruby-1.\[1\].8.0-1.i386.rpm
error: File not found by glob: ruby-1.[1].8.0-1.i386.rpm

# rpm -Uvh 'ruby-1.[1].8.0-1.i386.rpm'
error: File not found by glob: ruby-1.[1].8.0-1.i386.rpm

# rpm -Uvh '*.rpm'
Preparing...                ########################################### [100%]


Cheers,
Sean


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to