#函数中也可以使用位置参数!#函数是有返回结果的!#!/bin/bashshow_week(){        echo -n  "your input is :"         echo "$1"        case $1 in      #变量是$1                1)                        echo "Today is Monday"                        ;;                2)                        echo "Today is Tuesday"                        ;;                3)                        echo "Today is Wednesday"                        ;;                *)                        echo "I do not know"                        ;;                esac}if show_week "$1"    #函数调用参数,参数是$1then        echo "What you input is right"     #函数执行结果返回0else        echo "what you input is wrong"     #函数执行结果返回1fiexit 0[root@server100 test]# ./fun5.sh 1your input is :1Today is MondayWhat you input is right