shell脚本添加了function就会报错
#!/bin/shfunction urlencode(){ echo $1 | tr -d '\n' | xxd -plain | sed 's/\(..\)/%\1/g'}usage="Usage: mdb <set | get | apply> <attribute> <value>"case "$1" in "apply") # echo $0 apply attribute value! submit commit ;; "get") # echo $0 get $2 value case "$2" in fw_version) rgdb -i -g /runtime/sys/info/firmwareVersion ;;