星期四, 五月 17, 2007

bash or(||)

echo "testing1" || echo "testing2"
testing1

(echo "testing1"; exit 1) || echo "testing2"
testing1
testing2

没有评论: