I'd like to to do this in bash:
trap "echo Don\'t do that!" 2 3
which works just fine, except that I want the script to continue. How can I do that? If I leave the command as a blank string, the script continues, but does not print anything. Can I have both printing message and continuing?