Better error checking of config file by build scripts

Bastian Bittorf bb at npl.de
Mon Dec 21 07:22:59 UTC 2020


On Mon, Dec 21, 2020 at 05:28:36AM +0000, Paul Larkin wrote:
>  #!/bin/sh
>  
> +set -e
>  . ./.config || exit 1
> +set +e

IMHO the posix way is

command . ./.config || exit 1

The set -e/+e seems fragile, see:
https://www.in-ulm.de/~mascheck/various/set-e/

Paul:
Can you please check if this works for you?

bye, Bastian


More information about the busybox mailing list