Issue 627 in direnv's github project show: To reproduce this simply:
PROMPT_COMMAND="trap -- '' SIGINT; sleep 0.1; trap SIGINT;" read foo ^C -- will exit current shell -- On Mon, Oct 12, 2020 at 09:52:21PM -0700, Daniel Farina wrote: > On Sun, Oct 11, 2020 at 12:59 PM Chet Ramey <chet.ra...@case.edu> wrote: > > What commands does this `direnv' command output? > > _direnv_hook() { > local previous_exit_status=$?; > trap -- '' SIGINT; > eval "$("{{.SelfPath}}" export bash)"; > trap - SIGINT; > return $previous_exit_status; > }; -- Félix Hauri - <fe...@f-hauri.ch> - http://www.f-hauri.ch