[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Anomaly
From: |
PePa |
Subject: |
Anomaly |
Date: |
Wed, 21 Sep 2016 10:04:28 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
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