About exit [0]

Source: Internet
Author: User
Tags exit in
For details about exit [0]-general Linux technology-Linux programming and kernel, refer to the following. [I = s] This post was last edited by Shi fan

Test whether the parameters called by the script are correct.
############################### Start Script ###### #################################
1 E_WRONG_ARGS = 65
2 script_parameters = "-a-h-m-z"
3 #-a = all,-h = help, and so on.
4
5 if [$ #-ne $ Number_of_expected_args]
6 then
7 echo "Usage: 'basename $ 0' $ script_parameters"
8 # 'basename $ 0' is the script file name
9 exit $ E_WRONG_ARGS
10 fi

I would like to ask what is the meaning of exit in row 9th? Exit + number?
Appendix: what is the meaning of output in line 1?
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.