err_case=$?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers err_case=$?
# 1  
Old 06-26-2008
err_case=$?

Hi
I was going through a shell script and found err_case=$? after the case statement. It is meant for error traping . I could not find any reference or study material for this . Can you help in explaining it.
Is it from list of shell like variable like $0 ,$$,$- etc.

Thanks
# 2  
Old 06-26-2008
$? is the return code of the previous command.

Regards
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question