Understanding `$@`, `$*`, `"$@"`, and `"$*"` in Shell Scripts | vast-cow's blog
When working with shell scripts, handling command-line arguments correctly is critical. Variables like `$@` and `$*` are commonly used to access all positional parameters窶巴ut th...
シェルスクリプトにおける `$@`, `$*`, `"$@"`, `"$*"` の違いを徹底解説 | vast-cowのブログ
シェルスクリプトで引数を扱う際、$@ や $* は頻繁に登場します。しかし、クォートの有無によって挙動が大きく変わるため、正確に理解していないとバグの原因になります。本記事では、それぞれの違いを具体例とともに整理します。
Top comments (0)