Re: Suggestion for "errexit" equivalent for $(shell ...)

2023-12-28 Thread DSB
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 wrote: > Hi, > > On 2023-12-27 at 08:55 -05, quoth DSB : > > I see that you've researched this thor

Re: Suggestion for "errexit" equivalent for $(shell ...)

2023-12-27 Thread paul david
Hi, On 2023-12-27 at 08:55 -05, quoth DSB : > 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 l

Re: Suggestion for "errexit" equivalent for $(shell ...)

2023-12-27 Thread DSB
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. # Behave like $(shell ...) bu