|
From: | Martijn Dekker |
Subject: | [BUG] ERR trap triggered twice when using 'command' |
Date: | Sun, 1 Apr 2018 11:54:01 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
$ bash -c 'trap "echo WHOA" ERR; command false' WHOA WHOA Expected output: just one WHOA (as on *ksh, zsh) Thanks, - M.
[Prev in Thread] | Current Thread | [Next in Thread] |