Ksh中的$*和$@

来源:互联网 发布:php调用api 编辑:程序博客网 时间:2024/05/19 11:46

The meaning of $* and $@ is identical when not quoted or when used as a parameter assignment value or as a file name.

 

However, when used as a command argument, "$*" is equivalent to "$1d$2d..." , where d is the first character of the IFS parameter, whereas "$@" is equivalent to "$1" "$2" ....

原创粉丝点击