AIX 5.2 (ksh)
Hello Everyone,
I have another question pertaining to stty. Here is what I have:
# a.sh
stty intr '^-' susp '^-' dsusp '^-' quit '^-' # Disable ^C, ^Z, ^Y
and ^\.
/tmp/b.sh
echo "back to a.sh"
# b.sh
echo "inside b.sh...."
stty intr '^c'
sleep 30
After I execute a.sh (and when it is inside b.sh), if I hit Ctrl-C
while it is 'sleeping', I get back to the command prompt. Is there a
way I can prevent that and instead pass the control back to a.sh to the
line after /tmp/b.sh? (in this case, it would be the 'echo' command)
Thanks for any suggestions.
S