On Tue, Jan 25, 2022 at 01:33:45PM +0100, Vincent Lefevre wrote: > On 2022-01-25 09:12:52 +0100, Urs Thuermann wrote: > > Greg Wooledge <greg@wooledge.org> writes: [...] > > You can even do the somewhat easier > > > > cat ../patches/*.patch | patch -p1 > > > > which will do the same. > > Even easier (works with zsh, multios enabled, which is the default): > > patch -p1 < ../patches/*.patch But exactly that was the original poster's problem. With his shell (most probably bash) this leads to an "ambiguous redirect". Your zsh does an implicit cat when it sees multiple files. > > However, often the order of patches is important when some patch > > depends on another being applied before. Then *.patch will probably > > not work since it applies patches in alphabetical order. > > Sometimes patch names are prepended with a number with a fixed number > of digits (e.g., 3) to make sure that this works. Yes, this is an independent issue. The OP's patches (at least one of them, but we do induction :) are prepended by leading-zero four-digit numbers, so assuming they are intended to be ordered by that seems low risk ;-) Cheers -- t
Attachment:
signature.asc
Description: PGP signature