Please explain this:#!/bin/bash# This is scripta.sh./scriptb.sh &pid=$!echo $pid startedsleep 3while truedo    kill -SIGINT $pid    echo scripta.sh $$    sleep 3done -#!/bin/bash# This is scriptb.shtrap echo Ouch; SIGINTwhile truedo echo scriptb.sh $$ sleep 1doneWhen I run ./scripta.sh the trap doesn't print. If I switch from SIGINT to any other signal (I tried SIGTERM, SIGUSR1) the trap prints Ouch as expected. How can this happen?
Strange problem with trap and SIGINT
bash;shell;background process;signals;trap