To make things clear, I would short my bash script:
#!/bin/bash -e
p_time=$(expr 0 - 0)
echo ?
echo "process time(sec) is: " ${p_time}
The file would end before "echo ?", but if I change "p_time=$(expr 0 - 0)" to "p_time=$(expr 3 - 0)", the file would end correctly.
However, if I removed "-e" in the first sentence, the file ended correctly too.
Why would this happen?