Re: [BUG] ERR trap triggered twice when using 'command'
From:
Nick Chambers
Subject:
Re: [BUG] ERR trap triggered twice when using 'command'
Date:
Mon, 2 Apr 2018 14:35:28 +0000
On 4/1/18, 5:54 AM, "bug-bash on behalf of Martijn Dekker"
<bug-bash-bounces+nchambers=lightspeedsystems.com@gnu.org on behalf of
martijn@inlv.org> wrote:
$ bash -c 'trap "echo WHOA" ERR; command false'
WHOA
WHOA
Expected output: just one WHOA (as on *ksh, zsh)
Thanks,
- M.
Please use the bashbug tool to submit the bug, so those that look at this can
get some meaningful information about your environment (and at the very least,
can know what version of bash you’re using).