-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC3048
Vidar Holen edited this page Sep 8, 2020
·
1 revision
(or "In dash, ... is not supported." when using dash
)
trap 'handle_interrupt' SIGINT
trap 'handle_interrupt' INT
POSIX does not allow specifying the "SIG" prefix of a signal name like "INT". Bash and Ksh supports this as an extension.
Simply remove the "SIG" from the signal name.
None
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!