Wednesday, August 17, 2011

Given num=7 and amt=10, what is the exit status of the following test command? test "$num" -le "$amt"?

Use "echo $?" to get the last exit status. For this case, the exit status is 0 (i.e. true)

No comments:

Post a Comment