|
发表于 2006-12-31 13:14:48
|
显示全部楼层
命令行参数
下面这段拷贝自man bash
Special Parameters
The shell treats several parameters specially. These parameters may only be referenced; assignment to them
is not allowed.
* Expands to the positional parameters, starting from one. When the expansion occurs within double
quotes, it expands to a single word with the value of each parameter separated by the first charac-
ter of the IFS special variable. That is, "$*" is equivalent to "$1c$2c...", where c is the first
character of the value of the IFS variable. If IFS is unset, the parameters are separated by spa-
ces. If IFS is null, the parameters are joined without intervening separators. |
|