On 10/13/20 3:38 AM, felix wrote: > 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 --
Thanks, this is easy to work with. The fix is to note that the shell is to set the default SIGINT handler for interactive shells when running the second trap command, even though the shell is not interactive while running PROMPT_COMMAND. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/