On Sat, 2008-02-23 at 00:34 +0100, Michael Schwendt wrote:
On Fri, 22 Feb 2008 07:40:59 -0500, Jesse Keating wrote:
> On Fri, 22 Feb 2008 11:17:29 +0100
> Michael Schwendt <bugs.michael(a)gmx.net> wrote:
>
> > > + mv
> > >
'/var/tmp/openser-1.3.0-8.fc9-root-mockbuild//usr/lib/openser/perl/*'
/var/tmp/openser-1.3.0-8.fc9-root-mockbuild//usr/lib/perl5/vendor_perl/5.8.8/
> > > mv: cannot stat
> > >
`/var/tmp/openser-1.3.0-8.fc9-root-mockbuild//usr/lib/openser/perl/*':
> > > No such file or directory error: Bad exit status
> > > from /var/tmp/rpm-tmp.7626 (%install)
> >
> > Does the mv really use the single quotes like that?
> > Then it's clear why the * doesn't expand.
>
> Eh, that's just how bash spits things out if you run it with -x.
Are you sure? I cannot reproduce that with -x. Please demonstrate.
$ sh -x foo.sh
+ cp 'missingfile/*' /tmp
cp: cannot stat `missingfile/*': No such file or directory
- Doug