if [ $? -eq 0 ] .. can someone explain this? | Unix Linux Forums | Shell Programming and Scripting

if [ $? -eq 0 ] .. can someone explain this? | Unix Linux Forums | Shell Programming and Scripting

瀏覽:613
日期:2025-10-01
I thought it means if the return code of the previous command not equal to 0... Is this correct? ... The numeric comparisons for korn shell are numA -eq numB - True if numA and numB are equal numA -ne numB - True if numA and numB are not equal numA -lt .....看更多