mbland / go-script-bash

Framework for writing modular, discoverable, testable Bash scripts
ISC License
95 stars 16 forks source link

Handle EXIT traps properly in @go.log_command #224

Open mbland opened 6 years ago

mbland commented 6 years ago

When @go.log_command is passed a @go command, and that command sets the EXIT trap, the @go.log_command_invoke trap will be overridden, leading to an always-failing status. This behavior needs to be at least documented, if not worked around somehow.