BTW the $(or ...) is backward compatibility for make 3.x which did not have .SHELLSTATUS. On 3.x this macro devolves to behaving just like $(shell ...).
On Wed, Dec 27, 2023 at 11:12 PM paul david <paul.da...@redbubble.com> wrote: > Hi, > > On 2023-12-27 at 08:55 -05, quoth DSB <ya...@boyski.com>: > > I see that you've researched this thoroughly and aren't asking for > suggestions other than an answer to your .SHELL_ERREXIT question but I > still thought I'd offer the macro I wrote to solve this. It's not as easy > as a flag but at least it's a line-for-line replacement. > > This is fascinating -- yesterday i actually spent a few hours trying to > write a macro that does exactly that, but between returning values and > whitespace issues i didn't manage. Your macro is what i was trying to > achieve, so might well be the first acceptable stopgap measure i've > encountered. > > Thanks for sharing that snippet, i'll give it a go. I'd still be > interested in the possibility of adding a flag or option though :). > > Cheers, > p. > >