|

楼主 |
发表于 2007-9-18 12:14:36
|
显示全部楼层
手册中只有这两种:
${!prefix*}
${!prefix@}
Expands to the names of variables whose names begin with prefix, separated by the first character of the IFS special variable.
${!name[@]}
${!name}
If name is an array variable, expands to the list of array indices (keys) assigned in name. If name is not an array, expands to 0 if name is set and null otherwise. When @ is used and the expansion appears within double quotes, each key expands to a separate word.
可是这句:
export ATHVARIABLE="$1${!PATHVARIABLE:+ {!PATHVARIABLE}}"
里面没有“@”与“*”符号,又怎么解释? |
|