Handle SIGINT

Back to index
Date: 2021-06-24
Category: bash


trap my_function INT
my_function() { echo "hello!"; }

trap "echo 'hello';" INT

Both function identially.