exit.md
补充说明
语法
exit(参数)参数
实例
[root@localhost ~]# exit
logoutcd $(dirname $0) || exit 1if [ "$#" -ne "2" ]; then
echo "usage: $0 <area> <hours>"
exit 2
fiLast updated
exit(参数)[root@localhost ~]# exit
logoutcd $(dirname $0) || exit 1if [ "$#" -ne "2" ]; then
echo "usage: $0 <area> <hours>"
exit 2
fiLast updated
trap "rm -f tmpfile; echo Bye." EXIT./mycommand.sh
EXCODE=$?
if [ "$EXCODE" == "0" ]; then
echo "O.K"
fi