dollar star
The special parameter $*, which in double quotes joins every argument into one word separated by a space.
In more detail
It is for display, as in echo "got: $*". To pass arguments on, use "$@" instead, because "$*" turns several arguments into one. Unquoted, $* and $@ behave the same and both lose the original word boundaries.
Related terms
- dollar at — The special parameter $@, which in double quotes expands to every argument, or array element with ${arr[@]}, as a separate word.
- positional parameters — The numbered variables $1, $2 and so on that hold the arguments given to a script or function, with $# holding how many there are.
- IFS — The internal field separator: a shell variable listing the characters that word splitting and read cut text at.
Taught in
- Arrays, And Why Dollar At Is Not Dollar Star — Bash Scripting & Command Line Automation
- Arguments: Dollar One, Dollar At, shift — Bash Scripting & Command Line Automation