DEV Community

vast cow
vast cow

Posted on Edited on

Understanding `$@`, `$*`, `"$@"`, and `"$*"` in Shell Scripts

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...

favicon vast-cow.github.io

シェルスクリプトにおける `$@`, `$*`, `"$@"`, `"$*"` の違いを徹底解説 | vast-cowのブログ

シェルスクリプトで引数を扱う際、$@ や $* は頻繁に登場します。しかし、クォートの有無によって挙動が大きく変わるため、正確に理解していないとバグの原因になります。本記事では、それぞれの違いを具体例とともに整理します。

favicon vast-cow.github.io

Top comments (0)