Artificial intelligent assistant

When receiving SIGINT, does bash also quit other commands, besides loops (for or while)? From bash manual > When Bash receives a SIGINT, it breaks out of any executing loops. When receiving SIGINT, does bash also quit other commands, besides loops (for or while)? Thanks.

Quoting the bash manual:

> When `bash` is interactive, in the absence of any traps, it ignores `SIGTERM` (so that `kill 0` does not kill an interactive shell), and `SIGINT` is caught and handled (so that the `wait` builtin is interruptible).

Yes, bash quits builtins when it receives `SIGINT`. You can verify that with `wait` or `read` (`read` from a large file with no newlines will give you time to press `Ctrl``C`). `wait` in particular needs to deal with `SIGINT` correctly, as per POSIX (along with all other signals it can come across).

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy c5e63f2cfac60a7cd27a8f3f4927ebb9