|
#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"
| |
最近の日記
2024年07月03日
・kicad oddity
2024年05月08日
・comparison on ./buildsh tools
2024年05月06日
・py-setuptools (python 3.11.9)
・make release took 1 hours and 10 min
・qemu invocation for 10.99.10
2024年05月05日
・Windows 10 version
・serial connection
・bc bench
2024年05月04日
・Trial on 10.99.10
・another version (later trial) to succeed
|