[Koha-bugs] [Bug 17532] koha-shell -c does not propagate the error code

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 1 07:07:06 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17532

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcook at prosentient.com.au

--- Comment #17 from David Cook <dcook at prosentient.com.au> ---
This has a perhaps unforeseen consequence with koha-foreach.

Since koha-foreach uses "set -e", if 1 instance runs a command with koha-shell
which has a non-zero status, koha-foreach exits. If you have 10 instances and
the 1st produces an error, the other 9 instances won't have their commands run
at all.
(https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html#The-Set-Builtin)

I can't imagine that's what we'd want to do? I'll open a new bug report.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list