Commit 173d9f1
committed
Fix trap usage to correctly exit script
When a signal like `SIGINT` (Ctrl+C) is received, the shell **interrupts
the current command** and runs the trap handler. After the trap
completes, the shell **resumes execution** from where it was interrupted
- unless the trap explicitly calls `exit`.1 parent 1df7862 commit 173d9f1
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
| 362 | + | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
0 commit comments