dollar at

The special parameter $@, which in double quotes expands to every argument, or array element with ${arr[@]}, as a separate word.

In more detail

It is the correct way to pass a script's arguments on unchanged: "$@" keeps an argument with a space in it as one word. Without the quotes the arguments are split again and lose their boundaries. main "$@" at the end of a script hands every argument to the main function.

Example

report "$@"

Related terms

Taught in

References