gpg-bash-lib should automatically set/unset trap, pipefail, errtrace as required

Information

ID: 199
PHID: PHID-TASK-36hu53n5hc4qd5pfifjc
Author: Patrick
Status at Migration Time: resolved
Priority at Migration Time: Normal

Description

Quote.

A prerequisite is that you set
set -o pipefail
set -o errtrace

And.

Before execution of this library, enable the ERR trap that it provides.
trap “gpg_bash_lib_function_error_handler” ERR

It’s too inconvenient. It should be automated for simplicity and to avoid forgetting it.

Comments


Patrick

2015-02-24 12:40:19 UTC