When sourcing this script (version 1), it will print y after receiving an interrupt, but not in the 2 different versions (2 and 3).
# version 1 echo x sleep 99 echo y # version 2 echo x; sleep 99 echo y # version 3 echo x sleep 99; echo y Is this a bug or expected behaviour?? Thanks for your attention, Peter