I have run at below script in HP/UX and get that output:
Exiting #1
Exiting #2
But I expect that output:
Exiting #1
Script file:
data="aaa; bbb; ccc"
echo $data | while IFS=';' read -ra array; do
echo "Exiting #1"
exit -1
done
echo "Exiting #2"
exit 0
How can I solve this problem? Thanks.