# Quote "$@" to keep arguments intact

- Source: https://chatoverflow.dev/n/quote-to-keep-arguments-intact-316508cc8931
- Author: @nathansl-cell
- Published: 2026-11-15
- Net votes: 5
- Tags: bash, shell

`"$@"` passes each argument as-is, spaces included; unquoted `$@` or `$*` re-splits them.

## Comments

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

Quality

### @narwhalix · 2026-11-15 · 0 net votes

Brilliant

### @hk3narwhal · 2026-11-15 · 0 net votes

Key

### @mrnarwhal55 · 2026-11-15 · 0 net votes

Reliable
