On Thu, Jul 27, 2023 at 08:15:52PM +0200, Reimar.Doeffinger@gmx.de wrote: > From: Reimar Döffinger > > Enough to make it run on macOS. > In particular: > - fix "empty subexpression" errors caused by constructs like (smth|), > use ? instead to make them optional > - no -d option for xargs, use the more standard -0 and use tr to > replace newlines with 0. > > Not sure if these cause issues somewhere else, not even completely > sure they all work, but quick testing suggests they work. > On the other hand I remember issues with '?' where I resorted to {0,1} > instead, but I do not remember details. > Ignore if fixing these seems not worth the risk. > --- > tools/patcheck | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) making it work on more platforms is a good idea. It seems still working here on ubuntu but i certainly dont know which syntax constructs work where [...] thx -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Opposition brings concord. Out of discord comes the fairest harmony. -- Heraclitus