Wednesday, October 19, 2011

Q.)  If a shell script is designed to exit with a return code of 258, what output will be received on checking value of $? *or* what actual return code will be observed ?
Ans.
The return code will be 2 ! As, exit value greater than 255 returns an exit code (% 256 or modulo 256).

No comments:

Post a Comment