Re: [PATCH] Exit status by no-argument `return' for function calls in trap handlers

2020-04-18 Thread Koichi Murase
2020-04-19 5:12 Chet Ramey : > The POSIX wording seems straightforward and implies (B). The `action' > is a string that is defined to behave as if it were the argument to > `eval', so it can be an arbitrary command, which makes (A) unlikely. > > You could always ask the austin-group list for an int

Re: [PATCH] Exit status by no-argument `return' for function calls in trap handlers

2020-04-18 Thread Chet Ramey
On 4/16/20 1:21 PM, Koichi Murase wrote: > Bash Version: 5.0 > Patch Level: 11 > Release Status: release > > Summary: > > The behavior of no-argument `return' in trap handlers has been > changed from Bash 4.4 to follow the description of POSIX. Recently > this behavior caused problems in

[PATCH] Exit status by no-argument `return' for function calls in trap handlers

2020-04-16 Thread Koichi Murase
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/