special-parameter
Bash "$@" — preserve argument boundaries
Expands each positional parameter into a separate word in double quotes, preserving spaces and empty arguments. With no positional parameters it expands to no words.
Formal Syntax & Structure
bash syntaxbash
"$@"Return Value
word list
Separate argument words.
Working Example
Example Snippetbash
bash -c 'printf "<%s>\n" "$@"; printf "joined=<%s>\n" "$*"' demo 'New York' '' report