I want the work of the script below to continue after the interrupt arrives and until the first successful entry. In C usually used sigsetjmp()
and siglonglmp()
. Any alternatives in Shell scripts?
Thanks.
i()
{
echo "Okay ..."
}
trap 'i' INT
read -p "X " X