Re: [BUG] ERR trap triggered twice when using 'command'

2018-04-09 Thread Chet Ramey
On 4/7/18 12:52 PM, Martijn Dekker wrote: > Op 02-04-18 om 20:41 schreef Chet Ramey: >> Thanks for the report. This clearly falls under this clause >> >> "In every other respect, if command_name is not the name of a function, the >> effect of command (with no options) shall be the same as omitting

Re: [BUG] ERR trap triggered twice when using 'command'

2018-04-07 Thread Martijn Dekker
Op 02-04-18 om 20:41 schreef Chet Ramey: Thanks for the report. This clearly falls under this clause "In every other respect, if command_name is not the name of a function, the effect of command (with no options) shall be the same as omitting command." in the Posix description of `command'. It

Re: [BUG] ERR trap triggered twice when using 'command'

2018-04-02 Thread Chet Ramey
On 4/1/18 6:54 AM, Martijn Dekker wrote: > $ bash -c 'trap "echo WHOA" ERR; command false' > WHOA > WHOA > > Expected output: just one WHOA (as on *ksh, zsh) Thanks for the report. This clearly falls under this clause "In every other respect, if command_name is not the name of a function, the ef

Re: [BUG] ERR trap triggered twice when using 'command'

2018-04-02 Thread Martijn Dekker
Op 02-04-18 om 16:47 schreef Nick Chambers: You should still be providing this information :). How else would you expect people to help you. I'm not looking for help. I'm here to report the bugs in bash that I find, and occasionally to help fix them. That's what this list is for. > Ni

Re: [BUG] ERR trap triggered twice when using 'command'

2018-04-02 Thread Greg Wooledge
On Mon, Apr 02, 2018 at 02:35:28PM +, Nick Chambers wrote: > On 4/1/18, 5:54 AM, "bug-bash on behalf of Martijn Dekker" > mart...@inlv.org> wrote: > > $ bash -c 'trap "echo WHOA" ERR; command false' > WHOA > WHOA > > Expected output: just one WHOA (as on *ksh, zsh) >

Re: [BUG] ERR trap triggered twice when using 'command'

2018-04-02 Thread Nick Chambers
On 4/1/18, 5:54 AM, "bug-bash on behalf of Martijn Dekker" wrote: $ bash -c 'trap "echo WHOA" ERR; command false' WHOA WHOA Expected output: just one WHOA (as on *ksh, zsh) Thanks, - M. While you should still use the bashbug tool, I’m not sure if this

Re: [BUG] ERR trap triggered twice when using 'command'

2018-04-02 Thread Nick Chambers
On 4/1/18, 5:54 AM, "bug-bash on behalf of Martijn Dekker" 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

[BUG] ERR trap triggered twice when using 'command'

2018-04-01 Thread Martijn Dekker
$ bash -c 'trap "echo WHOA" ERR; command false' WHOA WHOA Expected output: just one WHOA (as on *ksh, zsh) Thanks, - M.