相同點: 均爲引用所有參數
不同點:“@”將所有入參視爲類似每個入參變量組成的數組變量。
FOREXP:test.sh
Echo “show \$* result”
For I in “$*”; do
Echo $i
Done
Echo “show \$@ result”
For I in “$@”; do
Echo $i
Done
執行腳本
$ sh ./test.sh a b c
show $* result
a b c
show $@ result
a
b
c