#!/bin/bash#************************************************# Author: Ronnie Ming# Filename: func.sh# Date: 2021-05-02 01:44:55# Description: ...#************************************************function func1() { ... return}func2() { ... return 1}...exit
#! : shebang is used to tell the kernel the name of the interpreter that should be
used to execute the script that follows.exit [EXIT_STATUS]
- Terminate the script with exit status of
EXIT_STATUS - When
no argument is passed, the exit status defaults to the exit status of the last command executed.
- When
a script “runs off the end” (reaches end of file), it terminates with an exit status of the last command executed.