Re: ERR trap fired in && compound inside a function

2017-12-16 Thread yury
Ah, pardon me, you're right. But I would expect $BASH_COMMAND inside the trap handler be 'f' in this case. 18:01, 16 �нежн� 2017, Chet Ramey : On 12/16/17 8:15 AM, Yury Kartynnik wrote:  Bash Version: 4.4  Patch Level: 12  Release Status: release  Descr

Re: ERR trap fired in && compound inside a function

2017-12-16 Thread Chet Ramey
On 12/16/17 8:15 AM, Yury Kartynnik wrote: > Bash Version: 4.4 > Patch Level: 12 > Release Status: release > > Description: > ERR trap gets fired when a non-last command in a && compound > command inside a function returns a non-zero code. > This doesn't happen when the compound c