> On Fri, Oct 1, 2021, 01:25 Mark March <ma...@systempad.org> wrote:
> 
> > If execfail is set, a failed exec does not cause a non-interactive shell
> > to exit, but it seems to reset the EXIT trap:

It also appears to reset the EXIT trap in an interactive shell.

unicorn:~$ shopt -s execfail
unicorn:~$ trap 'echo exiting' EXIT
unicorn:~$ trap -p EXIT
trap -- 'echo exiting' EXIT
unicorn:~$ exec sdkfkjsdf
bash: exec: sdkfkjsdf: not found
unicorn:~$ trap -p EXIT
unicorn:~$ 

Reply via email to