Re: trap RETURN not set in calling function is overwritten by callee

2015-08-21 Thread Chet Ramey
On 8/19/15 2:48 AM, jtmoon+bash...@extrahop.com wrote: > Fix: > For some reason the RETURN traps are not being stacked. Instead, the > current RETURN trap is just overwritten. There is only a single RETURN trap. Functions do not have local traps. If a return trap is set when a func

trap RETURN not set in calling function is overwritten by callee

2015-08-19 Thread jtmoon+bashbug
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKA