# HG changeset patch # User Franz Glasner # Date 1728309066 -7200 # Node ID 5379b253e8f2e3c68217fe21d21a8e8b0793d7ec # Parent 4cd2fd7ccf760e5d08e71da3de4239fb7e835d96 common.subr: allow an empty fatal exit code and map to the default EX_USAGE (70) diff -r 4cd2fd7ccf76 -r 5379b253e8f2 share/local-bsdtools/common.subr --- a/share/local-bsdtools/common.subr Mon Oct 07 14:25:43 2024 +0200 +++ b/share/local-bsdtools/common.subr Mon Oct 07 15:51:06 2024 +0200 @@ -61,6 +61,7 @@ if [ $# -ge 1 ]; then _ec="$1" + [ -z "$_ec" ] && _ec="${EX_USAGE}" shift else _ec=1