On Wed, Jun 4, 2025 at 5:09 PM Chet Ramey <chet.ra...@case.edu> wrote:
> You are running this with job control enabled, the shell doesn't receive
> the SIGINT, the shell notices that `sleep' exited due to SIGINT and
> interrupts the `source' (since that is what most people want -- bash
> behaves more like a non-interactive shell when it's reading input from
> a different source).

`source' is a red herring here, this report boils down to the following

$ trap uname INT
$ sleep 10
^C
$

Other shells (zsh, ksh, ash and pdksh variants) execute the trap
handler on ^C, bash is the outlier.

Reply via email to