2012-05-06 34 views

回答

2

:是殼內建Null command。您可以在終端上鍵入help :

:: : 
    Null command. 

    No effect; the command does nothing. 

    Exit Status: 
    Always succeeds. 

它看起來像/bin/true

+0

哈哈,好主意。 :) – Rodrigo

1

是的,這只是一個無限循環。通常情況下,while循環內的代碼將調用break以在滿足某些條件時退出循環。