[Zope] RE: OT: using 'patch' with wildcards
Jean Jordaan
jean@upfrontsystems.co.za
Wed, 17 Oct 2001 16:08:00 +0200
Oleg Broytmann wrote:
>
> > patch -p0 < ../Patches/*
>
> Wrong. Shell will expand it as
>
> patch -p0 < ../Patches/Patch1 ../Patches/Patch2
>
> and oops... shell syntax error.
Indeed, you're right. So this::
patch -p0 < ../Patches/*
will only work if there is only one patch. For more than one patch, one
could do this::
find ../Patches/ -exec patch -p0 -i \{\} \;
but that's a long way from the ZenFromZopeCoders page .. Which makes me
wonder again if Evan uses a different version of 'patch'?
Jean