|
#1
[Unix] /bin/sh の変数 $* と $@ の違い
- *
- Expands to the positional parameters, starting from one. When the expansion occurs within a double-quoted string it
expands to
a single field
with the value of each parameter
separated by the first character of the IFS variable, or by
a <space> if IFS is unset.
- @
- Expands to the positional parameters, starting from one.
When the expansion occurs within double-quotes, each posi-
tional parameter expands as
a separate argument.
If there
are no positional parameters, the expansion of @ generates
zero arguments, even when @ is double-quoted. What this
basically means, for example, is if $1 is ``abc'' and $2 is
``def ghi'', then "$@" expands to the two arguments:
"abc" "def ghi"
| |
最近の日記
2023年09月22日
・snmpd
2023年09月17日
・elscreen
2023年09月16日
・No continut-req from server (Wanderlust)
2023年09月14日
・you-know-you-know-its-me package
2023年09月11日
・chroot and pbulk
|