Catching errors in pipes

2023-12-05 Thread Sébastien Hinderer
Dear all, Is there a recommended way to catch errors in pipelines of coommands that are used in recipes, please? If so, how backward-compatible are they? I saw the .SHELLFLAGS variable but also found a bug report saying that its content is passed to the shell as one single argument. Is it thus m

RE: Catching errors in pipes

2023-12-05 Thread Cook, Malcolm
> Is there a recommended way to catch errors in pipelines of coommands that > are used in recipes, please? I use the following with good success: SHELL=/usr/bin/bash .SHELLFLAGS = -eu -o pipefail -c FWIW: I usually use the above in combination with: .ONESHELL: MAKEFLAGS += --no-builtin-rules MA