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 <[email protected]> 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 - <[email protected]> - http://www.f-hauri.ch