#! /bin/bash
declare -i count=0

trap 'echo -e \\nSIGINT ignored in $count; trap sigint;' sigint

while (( 1 == 1 )); do
    let count++
    read -p "$count loop again? "
done
echo loop count $count
exit 0
