bash 变量跟随#*=,##*=的含义
前言今天看项目的某个打包脚本,里面有这么一段写法…刚看完的时候,我真的一脸茫然~~~代码除了那个*#=都挺好理解的,就是for循环,switch匹配赋值…ARGS="$@"echo ${ARGS}for arg in ${ARGS}do case ${arg} in --packageName=*) echo packageName: ${arg#*=} packageNameArg=${arg#*=} ;;