Anyway, that works, thanks!
So it seems that trapping SIGTSTP works, so long as the script is currently executing an asynchronous command that is followed by a "wait", at the time when the user presses Ctrl-z. Did I get it right? I need to read a bit on this topic.
No comments yet.